aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/literals.lua
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2021-10-12 10:04:44 +0800
committerLi Jin <dragon-fly@qq.com>2021-10-12 10:04:44 +0800
commit60a979e224f26117f5be82bfca757a2483cef0fd (patch)
tree7c6af44f6dcada1f23979b820ba830251997b161 /spec/outputs/literals.lua
parenta19b242cbaf53721b20a3163dd06f43e9ef2b487 (diff)
downloadyuescript-60a979e224f26117f5be82bfca757a2483cef0fd.tar.gz
yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.tar.bz2
yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.zip
fix test.
Diffstat (limited to 'spec/outputs/literals.lua')
-rw-r--r--spec/outputs/literals.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/spec/outputs/literals.lua b/spec/outputs/literals.lua
new file mode 100644
index 0000000..1ffadc8
--- /dev/null
+++ b/spec/outputs/literals.lua
@@ -0,0 +1,28 @@
1local _ = {
2 121,
3 121.2323,
4 121.2323e-1,
5 121.2323e13434,
6 2323E34,
7 0x12323,
8 0xfF2323,
9 0xabcdef,
10 0xABCDEF,
11 .2323,
12 .2323e-1,
13 .2323e13434,
14 1LL,
15 1ULL,
16 9332LL,
17 9332,
18 0x2aLL,
19 0x2aULL,
20 [[ hello world ]],
21 [=[ hello world ]=],
22 [====[ hello world ]====],
23 "another world",
24 'what world',
25 "\n hello world\n ",
26 'yeah\n what is going on\n here is something cool'
27}
28return nil