aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2025-03-23 17:27:59 +0800
committerLi Jin <dragon-fly@qq.com>2025-03-23 17:27:59 +0800
commit577c2918290db5df573e8ce70470f13418dbcbc3 (patch)
tree7df030e329eb029af5fdc497ed775eed1c9e70df
parent08b68269ff6d6f868242dcefce75e1db26e4de61 (diff)
downloadyuescript-577c2918290db5df573e8ce70470f13418dbcbc3.tar.gz
yuescript-577c2918290db5df573e8ce70470f13418dbcbc3.tar.bz2
yuescript-577c2918290db5df573e8ce70470f13418dbcbc3.zip
Added more test cases.v0.27.2
-rw-r--r--spec/inputs/global.yue7
-rw-r--r--spec/outputs/global.lua6
2 files changed, 13 insertions, 0 deletions
diff --git a/spec/inputs/global.yue b/spec/inputs/global.yue
index 59cf764..ce1cc15 100644
--- a/spec/inputs/global.yue
+++ b/spec/inputs/global.yue
@@ -75,3 +75,10 @@ do
75 75
76 h = 100 76 h = 100
77 77
78do
79 global x = y
80 global ^
81 foobar = "all lowercase"
82 FooBar = "pascal case"
83 FOOBAR = "all uppercase"
84
diff --git a/spec/outputs/global.lua b/spec/outputs/global.lua
index 7e74387..54a21a9 100644
--- a/spec/outputs/global.lua
+++ b/spec/outputs/global.lua
@@ -87,3 +87,9 @@ do
87 end 87 end
88 local h = 100 88 local h = 100
89end 89end
90do
91 x = y
92 local foobar = "all lowercase"
93 FooBar = "pascal case"
94 FOOBAR = "all uppercase"
95end