bignumber_test_printers.h 744 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // bignumber_test_printers.h
  3. // bigdecimal
  4. //
  5. // Created by Sam Jaffe on 5/20/18.
  6. //
  7. #pragma once
  8. #include "biginteger.h"
  9. #include "bigdecimal.h"
  10. #include <string>
  11. #include <iosfwd>
  12. #include <tuple>
  13. struct ArithTuple { math::bigdecimal lhs, rhs; std::string expected; };
  14. struct BigDecPair { math::bigdecimal lhs, rhs; };
  15. using BigIntPair = std::tuple<math::biginteger, math::biginteger>;
  16. namespace math {
  17. void PrintTo(math::bigdecimal const & dec, std::ostream * out);
  18. void PrintTo(math::biginteger const & dec, std::ostream * out);
  19. }
  20. void PrintTo(BigDecPair const & tup, std::ostream * out);
  21. void PrintTo(ArithTuple const & tup, std::ostream * out);
  22. namespace std {
  23. void PrintTo(BigIntPair const & tup, std::ostream * out);
  24. }