| 12345678910111213141516171819202122232425262728293031323334 |
- //
- // bignumber_test_printers.h
- // bigdecimal
- //
- // Created by Sam Jaffe on 5/20/18.
- //
- #pragma once
- #include "math/bigdecimal.h"
- #include "math/biginteger.h"
- #include <iosfwd>
- #include <string>
- #include <tuple>
- struct ArithTuple {
- math::bigdecimal lhs, rhs;
- std::string expected;
- };
- struct BigDecPair {
- math::bigdecimal lhs, rhs;
- };
- using BigIntPair = std::tuple<math::biginteger, math::biginteger>;
- 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);
- }
|