aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/existential.yue2
-rw-r--r--spec/inputs/metatable.yue16
2 files changed, 9 insertions, 9 deletions
diff --git a/spec/inputs/existential.yue b/spec/inputs/existential.yue
index e73b421..27891dc 100644
--- a/spec/inputs/existential.yue
+++ b/spec/inputs/existential.yue
@@ -49,7 +49,7 @@ with? io.open "test.txt", "w"
49 \write "hello" 49 \write "hello"
50 \close! 50 \close!
51 51
52tb?.<a>? 123 52tb?.<call>? 123
53 53
54with? tb.<>?.<index> 54with? tb.<>?.<index>
55 .a = 1 55 .a = 1
diff --git a/spec/inputs/metatable.yue b/spec/inputs/metatable.yue
index 61cc266..38b7ce5 100644
--- a/spec/inputs/metatable.yue
+++ b/spec/inputs/metatable.yue
@@ -37,14 +37,14 @@ a.<index> = tb
37mt = a.<> 37mt = a.<>
38 38
39tb\func #list 39tb\func #list
40tb\<func>list 40tb\<"func">list
41tb\<func> list 41tb\<"func"> list
42 42
43import "module" as :<index>, <newindex>:setFunc 43import "module" as :<index>, <newindex>:setFunc
44 44
45with tb 45with tb
46 print .<add>, .x\<index> "key" 46 print .<add>, .x\<index> "key"
47 a = .<index>.<add>\<new> 123 47 a = .<index>.<add>\<"new"> 123
48 b = t#.<close>.test 48 b = t#.<close>.test
49 c = t #.<close> .test 49 c = t #.<close> .test
50 50
@@ -70,13 +70,13 @@ do
70 return tb\<["value" .. tostring x > y]>(123, ...) 70 return tb\<["value" .. tostring x > y]>(123, ...)
71 71
72do 72do
73 f = tb\<value>(123, ...) 73 f = tb\<'value'>(123, ...)
74 f tb\<value>(123, ...) 74 f tb\<'value'>(123, ...)
75 tb\<value>(123, ...) 75 tb\<'value'>(123, ...)
76 return tb\<value> 123, ... 76 return tb\<'value'> 123, ...
77 77
78do 78do
79 f = tb.<value> 123, ... 79 f = tb.<["value"]> 123, ...
80 f = tb.<"value#{x < y}">(123, ...) 80 f = tb.<"value#{x < y}">(123, ...)
81 f tb.<'value'> 123, ... 81 f tb.<'value'> 123, ...
82 tb.<[[ value 82 tb.<[[ value