aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests/valid
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/tests/valid')
-rw-r--r--test-suite/tests/valid/float-exponent.json11
-rw-r--r--test-suite/tests/valid/float-exponent.toml9
2 files changed, 20 insertions, 0 deletions
diff --git a/test-suite/tests/valid/float-exponent.json b/test-suite/tests/valid/float-exponent.json
new file mode 100644
index 0000000..97709b4
--- /dev/null
+++ b/test-suite/tests/valid/float-exponent.json
@@ -0,0 +1,11 @@
+{
+ "lower": {"type": "float", "value": "300.0"},
+ "upper": {"type": "float", "value": "300.0"},
+ "neg": {"type": "float", "value": "0.03"},
+ "pos": {"type": "float", "value": "300.0"},
+ "zero": {"type": "float", "value": "3.0"},
+ "pointlower": {"type": "float", "value": "310.0"},
+ "pointupper": {"type": "float", "value": "310.0"},
+ "prefix-zero-exp": {"type": "float", "value": "1000000.0"},
+ "prefix-zero-exp-plus": {"type": "float", "value": "1000000.0"}
+}
diff --git a/test-suite/tests/valid/float-exponent.toml b/test-suite/tests/valid/float-exponent.toml
new file mode 100644
index 0000000..5349db3
--- /dev/null
+++ b/test-suite/tests/valid/float-exponent.toml
@@ -0,0 +1,9 @@
+lower = 3e2
+upper = 3E2
+neg = 3e-2
+pos = 3E+2
+zero = 3e0
+pointlower = 3.1e2
+pointupper = 3.1E2
+prefix-zero-exp = 1e06
+prefix-zero-exp-plus = 1e+06