Tested return symbol and sigil operator def.
h3rald h3rald@h3rald.com
Mon, 28 Dec 2020 03:11:26 +0000
1 files changed,
21 insertions(+),
0 deletions(-)
jump to
M
tests/lang.min
→
tests/lang.min
@@ -246,6 +246,27 @@ )
) operator 2 4 pow-mul - 8 == ) assert + + ( + ( + sigil nt + (string :s ==> bool :result) + ( + ("int" s ==) + (true @result return) + when + ("num" s ==) + (true @result return) + when + ("float" s ==) + (true @result return) + when + "not gonna be printed if true!" puts + false @result + ) + ) operator + nt"float" + ) assert report ; Tidy up