summaryrefslogtreecommitdiff
path: root/encoding/testdata/integer.toml
diff options
context:
space:
mode:
authorVincent LE GOFF <g_n_s@hotmail.fr>2019-05-23 20:48:54 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-05-23 21:48:54 +0300
commit0803912c7fe5f034914e3c63347d5b6a4d2f23c8 (patch)
treeda385f32e9b01ed94f4d939e78881b76529827d2 /encoding/testdata/integer.toml
parent73f7be6ae0963548251b720465ea19802015901a (diff)
TOML: Move to encoding dir (denoland/deno_std#435)
Original: https://github.com/denoland/deno_std/commit/7a722ceffc0b60305863c1417ef22b835db0d58d
Diffstat (limited to 'encoding/testdata/integer.toml')
-rw-r--r--encoding/testdata/integer.toml20
1 files changed, 20 insertions, 0 deletions
diff --git a/encoding/testdata/integer.toml b/encoding/testdata/integer.toml
new file mode 100644
index 000000000..3bd781e8f
--- /dev/null
+++ b/encoding/testdata/integer.toml
@@ -0,0 +1,20 @@
+[integer]
+int1 = +99
+int2 = 42
+int3 = 0
+int4 = -17
+int5 = 1_000
+int6 = 5_349_221
+int7 = 1_2_3_4_5 # VALID but discouraged
+
+# hexadecimal with prefix `0x`
+hex1 = 0xDEADBEEF
+hex2 = 0xdeadbeef
+hex3 = 0xdead_beef
+
+# octal with prefix `0o`
+oct1 = 0o01234567
+oct2 = 0o755 # useful for Unix file permissions
+
+# binary with prefix `0b`
+bin1 = 0b11010110 \ No newline at end of file