diff options
| author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-05-23 20:48:54 +0200 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-05-23 21:48:54 +0300 |
| commit | 0803912c7fe5f034914e3c63347d5b6a4d2f23c8 (patch) | |
| tree | da385f32e9b01ed94f4d939e78881b76529827d2 /encoding/testdata/float.toml | |
| parent | 73f7be6ae0963548251b720465ea19802015901a (diff) | |
TOML: Move to encoding dir (denoland/deno_std#435)
Original: https://github.com/denoland/deno_std/commit/7a722ceffc0b60305863c1417ef22b835db0d58d
Diffstat (limited to 'encoding/testdata/float.toml')
| -rw-r--r-- | encoding/testdata/float.toml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/encoding/testdata/float.toml b/encoding/testdata/float.toml new file mode 100644 index 000000000..6a384179c --- /dev/null +++ b/encoding/testdata/float.toml @@ -0,0 +1,23 @@ +[float] +# fractional +flt1 = +1.0 # Comment +flt2 = 3.1415 # Comment +flt3 = -0.01 # Comment + +# exponent +flt4 = 5e+22 # Comment +flt5 = 1e6 # Comment +flt6 = -2E-2 # Comment + +# both +flt7 = 6.626e-34 # Comment +flt8 = 224_617.445_991_228 # Comment +# infinity +sf1 = inf # positive infinity +sf2 = +inf # positive infinity +sf3 = -inf # negative infinity + +# not a number +sf4 = nan # actual sNaN/qNaN encoding is implementation specific +sf5 = +nan # same as `nan` +sf6 = -nan # valid, actual encoding is implementation specific
\ No newline at end of file |
