diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-29 04:27:32 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-29 04:27:32 +0000 |
commit | 88857376d837c86ee4cbbe6ff3c9a22ab2113ffe (patch) | |
tree | efe8d5d117c400fef855ba85e3c181cd0d4bd501 /tests/data/toml-lang-compliance/valid/integer | |
parent | Initial commit. (diff) | |
download | python-tomli-w-88857376d837c86ee4cbbe6ff3c9a22ab2113ffe.tar.xz python-tomli-w-88857376d837c86ee4cbbe6ff3c9a22ab2113ffe.zip |
Adding upstream version 1.0.0.upstream/1.0.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/data/toml-lang-compliance/valid/integer')
17 files changed, 17 insertions, 0 deletions
diff --git a/tests/data/toml-lang-compliance/valid/integer/spec-int-1.toml b/tests/data/toml-lang-compliance/valid/integer/spec-int-1.toml new file mode 100644 index 0000000..bdf594d --- /dev/null +++ b/tests/data/toml-lang-compliance/valid/integer/spec-int-1.toml @@ -0,0 +1 @@ +int1 = +99 diff --git a/tests/data/toml-lang-compliance/valid/integer/spec-int-2.toml b/tests/data/toml-lang-compliance/valid/integer/spec-int-2.toml new file mode 100644 index 0000000..7e63963 --- /dev/null +++ b/tests/data/toml-lang-compliance/valid/integer/spec-int-2.toml @@ -0,0 +1 @@ +int2 = 42 diff --git a/tests/data/toml-lang-compliance/valid/integer/spec-int-3.toml b/tests/data/toml-lang-compliance/valid/integer/spec-int-3.toml new file mode 100644 index 0000000..2bc61bf --- /dev/null +++ b/tests/data/toml-lang-compliance/valid/integer/spec-int-3.toml @@ -0,0 +1 @@ +int3 = 0 diff --git a/tests/data/toml-lang-compliance/valid/integer/spec-int-3a.toml b/tests/data/toml-lang-compliance/valid/integer/spec-int-3a.toml new file mode 100644 index 0000000..cf7fcb9 --- /dev/null +++ b/tests/data/toml-lang-compliance/valid/integer/spec-int-3a.toml @@ -0,0 +1 @@ +int3a = +0 diff --git a/tests/data/toml-lang-compliance/valid/integer/spec-int-3b.toml b/tests/data/toml-lang-compliance/valid/integer/spec-int-3b.toml new file mode 100644 index 0000000..1f1f36b --- /dev/null +++ b/tests/data/toml-lang-compliance/valid/integer/spec-int-3b.toml @@ -0,0 +1 @@ +int3b = -0 diff --git a/tests/data/toml-lang-compliance/valid/integer/spec-int-4.toml b/tests/data/toml-lang-compliance/valid/integer/spec-int-4.toml new file mode 100644 index 0000000..d6ecc41 --- /dev/null +++ b/tests/data/toml-lang-compliance/valid/integer/spec-int-4.toml @@ -0,0 +1 @@ +int4 = -17 diff --git a/tests/data/toml-lang-compliance/valid/integer/spec-int-5.toml b/tests/data/toml-lang-compliance/valid/integer/spec-int-5.toml new file mode 100644 index 0000000..9df1153 --- /dev/null +++ b/tests/data/toml-lang-compliance/valid/integer/spec-int-5.toml @@ -0,0 +1 @@ +int5 = 1_000 diff --git a/tests/data/toml-lang-compliance/valid/integer/spec-int-6.toml b/tests/data/toml-lang-compliance/valid/integer/spec-int-6.toml new file mode 100644 index 0000000..bae369f --- /dev/null +++ b/tests/data/toml-lang-compliance/valid/integer/spec-int-6.toml @@ -0,0 +1 @@ +int6 = 5_349_221 diff --git a/tests/data/toml-lang-compliance/valid/integer/spec-int-7.toml b/tests/data/toml-lang-compliance/valid/integer/spec-int-7.toml new file mode 100644 index 0000000..54b023f --- /dev/null +++ b/tests/data/toml-lang-compliance/valid/integer/spec-int-7.toml @@ -0,0 +1 @@ +int7 = 1_2_3_4_5 # VALID but discouraged diff --git a/tests/data/toml-lang-compliance/valid/integer/spec-int-bin1.toml b/tests/data/toml-lang-compliance/valid/integer/spec-int-bin1.toml new file mode 100644 index 0000000..57ed4c6 --- /dev/null +++ b/tests/data/toml-lang-compliance/valid/integer/spec-int-bin1.toml @@ -0,0 +1 @@ +bin1 = 0b11010110 diff --git a/tests/data/toml-lang-compliance/valid/integer/spec-int-hex1.toml b/tests/data/toml-lang-compliance/valid/integer/spec-int-hex1.toml new file mode 100644 index 0000000..55809d6 --- /dev/null +++ b/tests/data/toml-lang-compliance/valid/integer/spec-int-hex1.toml @@ -0,0 +1 @@ +hex1 = 0xDEADBEEF diff --git a/tests/data/toml-lang-compliance/valid/integer/spec-int-hex2.toml b/tests/data/toml-lang-compliance/valid/integer/spec-int-hex2.toml new file mode 100644 index 0000000..0b74664 --- /dev/null +++ b/tests/data/toml-lang-compliance/valid/integer/spec-int-hex2.toml @@ -0,0 +1 @@ +hex2 = 0xdeadbeef diff --git a/tests/data/toml-lang-compliance/valid/integer/spec-int-hex3.toml b/tests/data/toml-lang-compliance/valid/integer/spec-int-hex3.toml new file mode 100644 index 0000000..b9efc69 --- /dev/null +++ b/tests/data/toml-lang-compliance/valid/integer/spec-int-hex3.toml @@ -0,0 +1 @@ +hex3 = 0xdead_beef diff --git a/tests/data/toml-lang-compliance/valid/integer/spec-int-max.toml b/tests/data/toml-lang-compliance/valid/integer/spec-int-max.toml new file mode 100644 index 0000000..37a4d75 --- /dev/null +++ b/tests/data/toml-lang-compliance/valid/integer/spec-int-max.toml @@ -0,0 +1 @@ +max=9_223_372_036_854_775_807 diff --git a/tests/data/toml-lang-compliance/valid/integer/spec-int-min.toml b/tests/data/toml-lang-compliance/valid/integer/spec-int-min.toml new file mode 100644 index 0000000..f0b9180 --- /dev/null +++ b/tests/data/toml-lang-compliance/valid/integer/spec-int-min.toml @@ -0,0 +1 @@ +min=-9_223_372_036_854_775_808 diff --git a/tests/data/toml-lang-compliance/valid/integer/spec-int-oct1.toml b/tests/data/toml-lang-compliance/valid/integer/spec-int-oct1.toml new file mode 100644 index 0000000..3761533 --- /dev/null +++ b/tests/data/toml-lang-compliance/valid/integer/spec-int-oct1.toml @@ -0,0 +1 @@ +oct1 = 0o01234567 diff --git a/tests/data/toml-lang-compliance/valid/integer/spec-int-oct2.toml b/tests/data/toml-lang-compliance/valid/integer/spec-int-oct2.toml new file mode 100644 index 0000000..45e161b --- /dev/null +++ b/tests/data/toml-lang-compliance/valid/integer/spec-int-oct2.toml @@ -0,0 +1 @@ +oct2 = 0o755 # useful for Unix file permissions |