mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[poincare] Add test to print the float 1000
On emscripten platform, print_float(1000.0) used to return "0000"
This commit is contained in:
committed by
LeaNumworks
parent
5ec09fdbd6
commit
89ea25556c
@@ -108,6 +108,9 @@ QUIZ_CASE(assert_print_floats) {
|
||||
assert_float_prints_to(10000000000000000000000000000.0, "1ᴇ28", DecimalMode, 14);
|
||||
assert_float_prints_to(10000000000000000000000000000.0, "10ᴇ27", EngineeringMode, 14);
|
||||
|
||||
// This used to crash on web platform
|
||||
assert_float_prints_to(1000.0, "1000", DecimalMode, 7);
|
||||
|
||||
assert_float_prints_to(1000000.0f, "1ᴇ6", ScientificMode, 7);
|
||||
assert_float_prints_to(1000000.0f, "1000000", DecimalMode, 7);
|
||||
assert_float_prints_to(1000000.0f, "1ᴇ6", EngineeringMode, 7);
|
||||
|
||||
Reference in New Issue
Block a user