Skip to content

Commit 1872d59

Browse files
committed
Add 32 bit testing
1 parent 4f82944 commit 1872d59

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
@@ -53,5 +53,17 @@ int main()
5353
test_sub<decimal_fast64_t>("1e+2", "1e-383", "99.99999999999999");
5454
test_sub<decimal_fast64_t>("1e+1", "1e-383", "9.999999999999999");
5555

56+
test_add<decimal32_t>("1e+2", "-1e-20", "99.99999");
57+
test_add<decimal32_t>("1e+1", "-1e-20", "9.999999");
58+
59+
test_add<decimal_fast32_t>("1e+2", "-1e-20", "99.99999");
60+
test_add<decimal_fast32_t>("1e+1", "-1e-20", "9.999999");
61+
62+
test_sub<decimal32_t>("1e+2", "1e-20", "99.99999");
63+
test_sub<decimal32_t>("1e+1", "1e-20", "9.999999");
64+
65+
test_sub<decimal_fast32_t>("1e+2", "1e-20", "99.99999");
66+
test_sub<decimal_fast32_t>("1e+1", "1e-20", "9.999999");
67+
5668
return boost::report_errors();
5769
}

0 commit comments

Comments
 (0)