summaryrefslogtreecommitdiffstats
path: root/tests/data/invalid/burntsushi/invalid/integer
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data/invalid/burntsushi/invalid/integer')
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/capital-bin.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/capital-hex.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/capital-oct.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/double-sign-nex.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/double-sign-plus.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/double-us.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/integer.multi41
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/invalid-bin.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/invalid-hex.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/invalid-oct.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/leading-us-bin.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/leading-us-hex.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/leading-us-oct.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/leading-us.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/leading-zero-1.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/leading-zero-2.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/leading-zero-3.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/leading-zero-sign-1.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/leading-zero-sign-2.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/leading-zero-sign-3.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/negative-bin.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/negative-hex.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/negative-oct.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/positive-bin.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/positive-hex.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/positive-oct.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/text-after-integer.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/trailing-us-bin.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/trailing-us-hex.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/trailing-us-oct.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/trailing-us.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/us-after-bin.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/us-after-hex.toml1
-rw-r--r--tests/data/invalid/burntsushi/invalid/integer/us-after-oct.toml1
34 files changed, 74 insertions, 0 deletions
diff --git a/tests/data/invalid/burntsushi/invalid/integer/capital-bin.toml b/tests/data/invalid/burntsushi/invalid/integer/capital-bin.toml
new file mode 100644
index 0000000..bea4e5e
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/capital-bin.toml
@@ -0,0 +1 @@
+capital-bin = 0B0
diff --git a/tests/data/invalid/burntsushi/invalid/integer/capital-hex.toml b/tests/data/invalid/burntsushi/invalid/integer/capital-hex.toml
new file mode 100644
index 0000000..bc064bb
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/capital-hex.toml
@@ -0,0 +1 @@
+capital-hex = 0X1
diff --git a/tests/data/invalid/burntsushi/invalid/integer/capital-oct.toml b/tests/data/invalid/burntsushi/invalid/integer/capital-oct.toml
new file mode 100644
index 0000000..ea08a4d
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/capital-oct.toml
@@ -0,0 +1 @@
+capital-oct = 0O0
diff --git a/tests/data/invalid/burntsushi/invalid/integer/double-sign-nex.toml b/tests/data/invalid/burntsushi/invalid/integer/double-sign-nex.toml
new file mode 100644
index 0000000..ff014cf
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/double-sign-nex.toml
@@ -0,0 +1 @@
+double-sign-nex = --99
diff --git a/tests/data/invalid/burntsushi/invalid/integer/double-sign-plus.toml b/tests/data/invalid/burntsushi/invalid/integer/double-sign-plus.toml
new file mode 100644
index 0000000..845ebb5
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/double-sign-plus.toml
@@ -0,0 +1 @@
+double-sign-plus = ++99
diff --git a/tests/data/invalid/burntsushi/invalid/integer/double-us.toml b/tests/data/invalid/burntsushi/invalid/integer/double-us.toml
new file mode 100644
index 0000000..cd00561
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/double-us.toml
@@ -0,0 +1 @@
+double-us = 1__23
diff --git a/tests/data/invalid/burntsushi/invalid/integer/integer.multi b/tests/data/invalid/burntsushi/invalid/integer/integer.multi
new file mode 100644
index 0000000..40ac409
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/integer.multi
@@ -0,0 +1,41 @@
+leading-zero-1 = 01
+leading-zero-2 = 00
+leading-zero-3 = 0_0
+leading-zero-sign-1 = -01
+leading-zero-sign-2 = +01
+leading-zero-sign-3 = +0_1
+
+double-sign-plus = ++99
+double-sign-nex = --99
+
+negative-hex = -0xff
+negative-bin = -0b11010110
+negative-oct = -0o99
+
+positive-hex = +0xff
+positive-bin = +0b11010110
+positive-oct = +0o99
+
+trailing-us = 123_
+leading-us = _123
+double-us = 1__23
+
+us-after-hex = 0x_1
+us-after-oct = 0o_1
+us-after-bin = 0b_1
+
+trailing-us-hex = 0x1_
+trailing-us-oct = 0o1_
+trailing-us-bin = 0b1_
+
+leading-us-hex = _0o1
+leading-us-oct = _0o1
+leading-us-bin = _0o1
+
+invalid-hex = 0xaafz
+invalid-oct = 0o778
+invalid-bin = 0b0012
+
+capital-hex = 0X1
+capital-oct = 0O0
+capital-bin = 0B0
diff --git a/tests/data/invalid/burntsushi/invalid/integer/invalid-bin.toml b/tests/data/invalid/burntsushi/invalid/integer/invalid-bin.toml
new file mode 100644
index 0000000..d018258
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/invalid-bin.toml
@@ -0,0 +1 @@
+invalid-bin = 0b0012
diff --git a/tests/data/invalid/burntsushi/invalid/integer/invalid-hex.toml b/tests/data/invalid/burntsushi/invalid/integer/invalid-hex.toml
new file mode 100644
index 0000000..7cc0e85
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/invalid-hex.toml
@@ -0,0 +1 @@
+invalid-hex = 0xaafz
diff --git a/tests/data/invalid/burntsushi/invalid/integer/invalid-oct.toml b/tests/data/invalid/burntsushi/invalid/integer/invalid-oct.toml
new file mode 100644
index 0000000..03181b1
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/invalid-oct.toml
@@ -0,0 +1 @@
+invalid-oct = 0o778
diff --git a/tests/data/invalid/burntsushi/invalid/integer/leading-us-bin.toml b/tests/data/invalid/burntsushi/invalid/integer/leading-us-bin.toml
new file mode 100644
index 0000000..8885c03
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/leading-us-bin.toml
@@ -0,0 +1 @@
+leading-us-bin = _0o1
diff --git a/tests/data/invalid/burntsushi/invalid/integer/leading-us-hex.toml b/tests/data/invalid/burntsushi/invalid/integer/leading-us-hex.toml
new file mode 100644
index 0000000..9f193f8
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/leading-us-hex.toml
@@ -0,0 +1 @@
+leading-us-hex = _0o1
diff --git a/tests/data/invalid/burntsushi/invalid/integer/leading-us-oct.toml b/tests/data/invalid/burntsushi/invalid/integer/leading-us-oct.toml
new file mode 100644
index 0000000..a717f1c
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/leading-us-oct.toml
@@ -0,0 +1 @@
+leading-us-oct = _0o1
diff --git a/tests/data/invalid/burntsushi/invalid/integer/leading-us.toml b/tests/data/invalid/burntsushi/invalid/integer/leading-us.toml
new file mode 100644
index 0000000..d059f50
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/leading-us.toml
@@ -0,0 +1 @@
+leading-us = _123
diff --git a/tests/data/invalid/burntsushi/invalid/integer/leading-zero-1.toml b/tests/data/invalid/burntsushi/invalid/integer/leading-zero-1.toml
new file mode 100644
index 0000000..eba6bda
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/leading-zero-1.toml
@@ -0,0 +1 @@
+leading-zero-1 = 01
diff --git a/tests/data/invalid/burntsushi/invalid/integer/leading-zero-2.toml b/tests/data/invalid/burntsushi/invalid/integer/leading-zero-2.toml
new file mode 100644
index 0000000..436af56
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/leading-zero-2.toml
@@ -0,0 +1 @@
+leading-zero-2 = 00
diff --git a/tests/data/invalid/burntsushi/invalid/integer/leading-zero-3.toml b/tests/data/invalid/burntsushi/invalid/integer/leading-zero-3.toml
new file mode 100644
index 0000000..5404fc8
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/leading-zero-3.toml
@@ -0,0 +1 @@
+leading-zero-3 = 0_0
diff --git a/tests/data/invalid/burntsushi/invalid/integer/leading-zero-sign-1.toml b/tests/data/invalid/burntsushi/invalid/integer/leading-zero-sign-1.toml
new file mode 100644
index 0000000..1f15a9d
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/leading-zero-sign-1.toml
@@ -0,0 +1 @@
+leading-zero-sign-1 = -01
diff --git a/tests/data/invalid/burntsushi/invalid/integer/leading-zero-sign-2.toml b/tests/data/invalid/burntsushi/invalid/integer/leading-zero-sign-2.toml
new file mode 100644
index 0000000..fa259c3
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/leading-zero-sign-2.toml
@@ -0,0 +1 @@
+leading-zero-sign-2 = +01
diff --git a/tests/data/invalid/burntsushi/invalid/integer/leading-zero-sign-3.toml b/tests/data/invalid/burntsushi/invalid/integer/leading-zero-sign-3.toml
new file mode 100644
index 0000000..3ac64a5
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/leading-zero-sign-3.toml
@@ -0,0 +1 @@
+leading-zero-sign-3 = +0_1
diff --git a/tests/data/invalid/burntsushi/invalid/integer/negative-bin.toml b/tests/data/invalid/burntsushi/invalid/integer/negative-bin.toml
new file mode 100644
index 0000000..948b236
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/negative-bin.toml
@@ -0,0 +1 @@
+negative-bin = -0b11010110
diff --git a/tests/data/invalid/burntsushi/invalid/integer/negative-hex.toml b/tests/data/invalid/burntsushi/invalid/integer/negative-hex.toml
new file mode 100644
index 0000000..67c31ea
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/negative-hex.toml
@@ -0,0 +1 @@
+negative-hex = -0xff
diff --git a/tests/data/invalid/burntsushi/invalid/integer/negative-oct.toml b/tests/data/invalid/burntsushi/invalid/integer/negative-oct.toml
new file mode 100644
index 0000000..b0c5ab0
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/negative-oct.toml
@@ -0,0 +1 @@
+negative-oct = -0o99
diff --git a/tests/data/invalid/burntsushi/invalid/integer/positive-bin.toml b/tests/data/invalid/burntsushi/invalid/integer/positive-bin.toml
new file mode 100644
index 0000000..7d6de65
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/positive-bin.toml
@@ -0,0 +1 @@
+positive-bin = +0b11010110
diff --git a/tests/data/invalid/burntsushi/invalid/integer/positive-hex.toml b/tests/data/invalid/burntsushi/invalid/integer/positive-hex.toml
new file mode 100644
index 0000000..bd503aa
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/positive-hex.toml
@@ -0,0 +1 @@
+positive-hex = +0xff
diff --git a/tests/data/invalid/burntsushi/invalid/integer/positive-oct.toml b/tests/data/invalid/burntsushi/invalid/integer/positive-oct.toml
new file mode 100644
index 0000000..d77aa52
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/positive-oct.toml
@@ -0,0 +1 @@
+positive-oct = +0o99
diff --git a/tests/data/invalid/burntsushi/invalid/integer/text-after-integer.toml b/tests/data/invalid/burntsushi/invalid/integer/text-after-integer.toml
new file mode 100644
index 0000000..42de7af
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/text-after-integer.toml
@@ -0,0 +1 @@
+answer = 42 the ultimate answer?
diff --git a/tests/data/invalid/burntsushi/invalid/integer/trailing-us-bin.toml b/tests/data/invalid/burntsushi/invalid/integer/trailing-us-bin.toml
new file mode 100644
index 0000000..9a0b574
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/trailing-us-bin.toml
@@ -0,0 +1 @@
+trailing-us-bin = 0b1_
diff --git a/tests/data/invalid/burntsushi/invalid/integer/trailing-us-hex.toml b/tests/data/invalid/burntsushi/invalid/integer/trailing-us-hex.toml
new file mode 100644
index 0000000..2a96455
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/trailing-us-hex.toml
@@ -0,0 +1 @@
+trailing-us-hex = 0x1_
diff --git a/tests/data/invalid/burntsushi/invalid/integer/trailing-us-oct.toml b/tests/data/invalid/burntsushi/invalid/integer/trailing-us-oct.toml
new file mode 100644
index 0000000..d28e8bc
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/trailing-us-oct.toml
@@ -0,0 +1 @@
+trailing-us-oct = 0o1_
diff --git a/tests/data/invalid/burntsushi/invalid/integer/trailing-us.toml b/tests/data/invalid/burntsushi/invalid/integer/trailing-us.toml
new file mode 100644
index 0000000..e11e8ff
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/trailing-us.toml
@@ -0,0 +1 @@
+trailing-us = 123_
diff --git a/tests/data/invalid/burntsushi/invalid/integer/us-after-bin.toml b/tests/data/invalid/burntsushi/invalid/integer/us-after-bin.toml
new file mode 100644
index 0000000..61dd895
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/us-after-bin.toml
@@ -0,0 +1 @@
+us-after-bin = 0b_1
diff --git a/tests/data/invalid/burntsushi/invalid/integer/us-after-hex.toml b/tests/data/invalid/burntsushi/invalid/integer/us-after-hex.toml
new file mode 100644
index 0000000..200220a
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/us-after-hex.toml
@@ -0,0 +1 @@
+us-after-hex = 0x_1
diff --git a/tests/data/invalid/burntsushi/invalid/integer/us-after-oct.toml b/tests/data/invalid/burntsushi/invalid/integer/us-after-oct.toml
new file mode 100644
index 0000000..23f5300
--- /dev/null
+++ b/tests/data/invalid/burntsushi/invalid/integer/us-after-oct.toml
@@ -0,0 +1 @@
+us-after-oct = 0o_1