From 4bd1513262a61071b07f5efe2a3cb9356ce6c8c2 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Wed, 17 May 2023 15:11:09 +0800 Subject: fix spec. --- spec/inputs/existential.yue | 2 +- spec/inputs/metatable.yue | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'spec/inputs') 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" \write "hello" \close! -tb?.? 123 +tb?.? 123 with? tb.<>?. .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. = tb mt = a.<> tb\func #list -tb\list -tb\ list +tb\<"func">list +tb\<"func"> list import "module" as :, :setFunc with tb print ., .x\ "key" - a = ..\ 123 + a = ..\<"new"> 123 b = t#..test c = t #. .test @@ -70,13 +70,13 @@ do return tb\<["value" .. tostring x > y]>(123, ...) do - f = tb\(123, ...) - f tb\(123, ...) - tb\(123, ...) - return tb\ 123, ... + f = tb\<'value'>(123, ...) + f tb\<'value'>(123, ...) + tb\<'value'>(123, ...) + return tb\<'value'> 123, ... do - f = tb. 123, ... + f = tb.<["value"]> 123, ... f = tb.<"value#{x < y}">(123, ...) f tb.<'value'> 123, ... tb.<[[ value -- cgit v1.2.3-55-g6feb