mirror of
https://github.com/DaveGamble/cJSON
synced 2025-01-11 09:19:41 +00:00
tests/print_number: Add test with 17 digits of precision
This commit is contained in:
parent
21733eb02e
commit
45e1278acb
@ -68,6 +68,7 @@ static void print_number_should_print_positive_reals(void)
|
|||||||
assert_print_number("1000000000000", 10e11);
|
assert_print_number("1000000000000", 10e11);
|
||||||
assert_print_number("1.23e+129", 123e+127);
|
assert_print_number("1.23e+129", 123e+127);
|
||||||
assert_print_number("1.23e-126", 123e-128);
|
assert_print_number("1.23e-126", 123e-128);
|
||||||
|
assert_print_number("3.1415926535897931", 3.1415926535897931);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void print_number_should_print_negative_reals(void)
|
static void print_number_should_print_negative_reals(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user