summaryrefslogtreecommitdiff
path: root/toml/testdata/float.toml
diff options
context:
space:
mode:
authorVincent LE GOFF <g_n_s@hotmail.fr>2019-03-28 17:31:15 +0100
committerRyan Dahl <ry@tinyclouds.org>2019-03-28 12:31:15 -0400
commit13aeee460a62dc6b49de3a7d5d6305ea51ab5e4c (patch)
tree0605d5e3e4b5e7536aa1ea2f7218fb73edded514 /toml/testdata/float.toml
parent8f0407efad81ea8c255daf03c0e19b6bae3b88b6 (diff)
Add TOML module (denoland/deno_std#300)
Original: https://github.com/denoland/deno_std/commit/fa1664e6ccaad9ad98a131f03fdd600c5fa24100
Diffstat (limited to 'toml/testdata/float.toml')
-rw-r--r--toml/testdata/float.toml23
1 files changed, 23 insertions, 0 deletions
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