// // bignumber_test_printers.h // bigdecimal // // Created by Sam Jaffe on 5/20/18. // #pragma once #include "math/bigdecimal.h" #include "math/biginteger.h" #include #include #include struct ArithTuple { math::bigdecimal lhs, rhs; std::string expected; }; struct BigDecPair { math::bigdecimal lhs, rhs; }; using BigIntPair = std::tuple; namespace math { void PrintTo(math::bigdecimal const & dec, std::ostream * out); void PrintTo(math::biginteger const & dec, std::ostream * out); } void PrintTo(BigDecPair const & tup, std::ostream * out); void PrintTo(ArithTuple const & tup, std::ostream * out); namespace std { void PrintTo(BigIntPair const & tup, std::ostream * out); }