Skip to content

Commit a67a8ba

Browse files
committed
Add 128-bit test set
1 parent 1872d59 commit a67a8ba

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/test_downward_rounding.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,17 @@ int main()
6565
test_sub<decimal_fast32_t>("1e+2", "1e-20", "99.99999");
6666
test_sub<decimal_fast32_t>("1e+1", "1e-20", "9.999999");
6767

68+
test_add<decimal128_t>("1e+2", "-1e-383", "99.99999999999999999999999999999999");
69+
test_add<decimal128_t>("1e+1", "-1e-383", "9.999999999999999999999999999999999");
70+
71+
test_add<decimal_fast128_t>("1e+2", "-1e-383", "99.99999999999999999999999999999999");
72+
test_add<decimal_fast128_t>("1e+1", "-1e-383", "9.999999999999999999999999999999999");
73+
74+
test_sub<decimal128_t>("1e+2", "1e-383", "99.99999999999999999999999999999999");
75+
test_sub<decimal128_t>("1e+1", "1e-383", "9.999999999999999999999999999999999");
76+
77+
test_sub<decimal_fast128_t>("1e+2", "1e-383", "99.99999999999999999999999999999999");
78+
test_sub<decimal_fast128_t>("1e+1", "1e-383", "9.999999999999999999999999999999999");
79+
6880
return boost::report_errors();
6981
}

0 commit comments

Comments
 (0)