From 0803912c7fe5f034914e3c63347d5b6a4d2f23c8 Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Thu, 23 May 2019 20:48:54 +0200 Subject: TOML: Move to encoding dir (denoland/deno_std#435) Original: https://github.com/denoland/deno_std/commit/7a722ceffc0b60305863c1417ef22b835db0d58d --- encoding/testdata/float.toml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 encoding/testdata/float.toml (limited to 'encoding/testdata/float.toml') 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 -- cgit v1.2.3