summaryrefslogtreecommitdiffstats
path: root/tests/data/toml-lang-compliance/valid/float
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data/toml-lang-compliance/valid/float')
-rw-r--r--tests/data/toml-lang-compliance/valid/float/spec-float-1.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/float/spec-float-10.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/float/spec-float-11.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/float/spec-float-12.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/float/spec-float-13.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/float/spec-float-14.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/float/spec-float-15.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/float/spec-float-2.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/float/spec-float-3.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/float/spec-float-4.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/float/spec-float-5.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/float/spec-float-6.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/float/spec-float-7.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/float/spec-float-8.toml1
-rw-r--r--tests/data/toml-lang-compliance/valid/float/spec-float-9.toml1
15 files changed, 15 insertions, 0 deletions
diff --git a/tests/data/toml-lang-compliance/valid/float/spec-float-1.toml b/tests/data/toml-lang-compliance/valid/float/spec-float-1.toml
new file mode 100644
index 0000000..8da5cef
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/float/spec-float-1.toml
@@ -0,0 +1 @@
+flt1 = +1.0
diff --git a/tests/data/toml-lang-compliance/valid/float/spec-float-10.toml b/tests/data/toml-lang-compliance/valid/float/spec-float-10.toml
new file mode 100644
index 0000000..921d3d8
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/float/spec-float-10.toml
@@ -0,0 +1 @@
+sf1 = inf # positive infinity
diff --git a/tests/data/toml-lang-compliance/valid/float/spec-float-11.toml b/tests/data/toml-lang-compliance/valid/float/spec-float-11.toml
new file mode 100644
index 0000000..a0d60b8
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/float/spec-float-11.toml
@@ -0,0 +1 @@
+sf2 = +inf # positive infinity
diff --git a/tests/data/toml-lang-compliance/valid/float/spec-float-12.toml b/tests/data/toml-lang-compliance/valid/float/spec-float-12.toml
new file mode 100644
index 0000000..7666b87
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/float/spec-float-12.toml
@@ -0,0 +1 @@
+sf3 = -inf # negative infinity
diff --git a/tests/data/toml-lang-compliance/valid/float/spec-float-13.toml b/tests/data/toml-lang-compliance/valid/float/spec-float-13.toml
new file mode 100644
index 0000000..211cc25
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/float/spec-float-13.toml
@@ -0,0 +1 @@
+sf4 = nan # actual sNaN/qNaN encoding is implementation specific
diff --git a/tests/data/toml-lang-compliance/valid/float/spec-float-14.toml b/tests/data/toml-lang-compliance/valid/float/spec-float-14.toml
new file mode 100644
index 0000000..bc22a27
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/float/spec-float-14.toml
@@ -0,0 +1 @@
+sf5 = +nan # same as `nan`
diff --git a/tests/data/toml-lang-compliance/valid/float/spec-float-15.toml b/tests/data/toml-lang-compliance/valid/float/spec-float-15.toml
new file mode 100644
index 0000000..a51c85c
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/float/spec-float-15.toml
@@ -0,0 +1 @@
+sf6 = -nan # valid, actual encoding is implementation specific
diff --git a/tests/data/toml-lang-compliance/valid/float/spec-float-2.toml b/tests/data/toml-lang-compliance/valid/float/spec-float-2.toml
new file mode 100644
index 0000000..61b0f38
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/float/spec-float-2.toml
@@ -0,0 +1 @@
+flt2 = 3.1415
diff --git a/tests/data/toml-lang-compliance/valid/float/spec-float-3.toml b/tests/data/toml-lang-compliance/valid/float/spec-float-3.toml
new file mode 100644
index 0000000..3a83cc1
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/float/spec-float-3.toml
@@ -0,0 +1 @@
+flt3 = -0.01
diff --git a/tests/data/toml-lang-compliance/valid/float/spec-float-4.toml b/tests/data/toml-lang-compliance/valid/float/spec-float-4.toml
new file mode 100644
index 0000000..1778616
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/float/spec-float-4.toml
@@ -0,0 +1 @@
+flt4 = 5e+22
diff --git a/tests/data/toml-lang-compliance/valid/float/spec-float-5.toml b/tests/data/toml-lang-compliance/valid/float/spec-float-5.toml
new file mode 100644
index 0000000..1ac9eaf
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/float/spec-float-5.toml
@@ -0,0 +1 @@
+flt5 = 1e06
diff --git a/tests/data/toml-lang-compliance/valid/float/spec-float-6.toml b/tests/data/toml-lang-compliance/valid/float/spec-float-6.toml
new file mode 100644
index 0000000..5bfa47f
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/float/spec-float-6.toml
@@ -0,0 +1 @@
+flt6 = -2E-2
diff --git a/tests/data/toml-lang-compliance/valid/float/spec-float-7.toml b/tests/data/toml-lang-compliance/valid/float/spec-float-7.toml
new file mode 100644
index 0000000..15b43b1
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/float/spec-float-7.toml
@@ -0,0 +1 @@
+flt7 = 6.626e-34
diff --git a/tests/data/toml-lang-compliance/valid/float/spec-float-8.toml b/tests/data/toml-lang-compliance/valid/float/spec-float-8.toml
new file mode 100644
index 0000000..3c8f0aa
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/float/spec-float-8.toml
@@ -0,0 +1 @@
+flt8 = 224_617.445_991_228
diff --git a/tests/data/toml-lang-compliance/valid/float/spec-float-9.toml b/tests/data/toml-lang-compliance/valid/float/spec-float-9.toml
new file mode 100644
index 0000000..7e65ade
--- /dev/null
+++ b/tests/data/toml-lang-compliance/valid/float/spec-float-9.toml
@@ -0,0 +1 @@
+flt9 = -0e0