From 13aeee460a62dc6b49de3a7d5d6305ea51ab5e4c Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Thu, 28 Mar 2019 17:31:15 +0100 Subject: Add TOML module (denoland/deno_std#300) Original: https://github.com/denoland/deno_std/commit/fa1664e6ccaad9ad98a131f03fdd600c5fa24100 --- toml/testdata/float.toml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 toml/testdata/float.toml (limited to 'toml/testdata/float.toml') diff --git a/toml/testdata/float.toml b/toml/testdata/float.toml new file mode 100644 index 000000000..92f0b6d17 --- /dev/null +++ b/toml/testdata/float.toml @@ -0,0 +1,23 @@ +[float] +# fractional +flt1 = +1.0 +flt2 = 3.1415 +flt3 = -0.01 + +# exponent +flt4 = 5e+22 +flt5 = 1e6 +flt6 = -2E-2 + +# both +flt7 = 6.626e-34 +flt8 = 224_617.445_991_228 +# 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 -- cgit v1.2.3