diff options
Diffstat (limited to 'tests/interpretation/float.pom')
-rw-r--r-- | tests/interpretation/float.pom | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/interpretation/float.pom b/tests/interpretation/float.pom new file mode 100644 index 0000000..e898f39 --- /dev/null +++ b/tests/interpretation/float.pom @@ -0,0 +1,45 @@ +[good] + +decimal.a = 3 +decimal.b = 3.0 +minus_decimal.a = -3 +minus_decimal.b = -3.0 +plus_decimal.a = +3 +plus_decimal.b = +3.0 + +exp.a = 3e5 +exp.b = 3.0E+5 + +minus_exp.a = -3e5 +minus_exp.b = -3.0E+5 + +plus_exp.a = +3e5 +plus_exp.b = +3.0E+5 + +exp_leading_zero.a = 3.00000000000e-00000001 +exp_leading_zero.b = 0.3 + +long.a = 1375439875498279318427598327459872398475983274985723984570928340981230498123409578654987 +long.b = 1.3754398754982793e+87 + +inf.a = 1e999 +inf.b = 5e+01000 + +[bad] + +leading_space = " 3" +trailing_space = "3 " +no_digit_before_decimal = .3 +minus_no_digit_before_decimal = -.3 +plus_no_digit_before_decimal = +.3 +hex_float = 0x1.0p3 +plus_plus = ++0 +plus_minus = +-0 +minus_plus = -+0 +minus_minus = --0 +nan = nan +inf = inf +NaN = NaN +Infinity = Infinity +terminal_dot = 8. +dot_followed_by_e = 8.e3 |