Explorar o código

tests/print_number: Add test with 17 digits of precision

Max Bruckner %!s(int64=8) %!d(string=hai) anos
pai
achega
33865a75a1
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      tests/print_number.c

+ 1 - 0
tests/print_number.c

@@ -68,6 +68,7 @@ static void print_number_should_print_positive_reals(void)
     assert_print_number("1000000000000", 10e11);
     assert_print_number("1.23e+129", 123e+127);
     assert_print_number("1.23e-126", 123e-128);
+    assert_print_number("3.1415926535897931", 3.1415926535897931);
 }
 
 static void print_number_should_print_negative_reals(void)