added 'ret' and implemented a proper 'strcmp'
This commit is contained in:
1
tests/ret_test.expected
Normal file
1
tests/ret_test.expected
Normal file
@@ -0,0 +1 @@
|
||||
g
|
||||
11
tests/ret_test.sl
Normal file
11
tests/ret_test.sl
Normal file
@@ -0,0 +1,11 @@
|
||||
import stdlib.sl
|
||||
|
||||
word g
|
||||
"g" puts
|
||||
ret
|
||||
"g" puts
|
||||
end
|
||||
|
||||
word main
|
||||
g
|
||||
end
|
||||
@@ -1,4 +1,3 @@
|
||||
1
|
||||
g
|
||||
g
|
||||
0
|
||||
hello world hello world hello world hello world hello world
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
import stdlib.sl
|
||||
|
||||
word main
|
||||
"g" "g"
|
||||
"ggggggggh" "ggggggggh"
|
||||
strcmp
|
||||
puti cr
|
||||
|
||||
"ggggggggh" "ggggggggd"
|
||||
strcmp
|
||||
puti cr
|
||||
puts
|
||||
puts
|
||||
|
||||
"hello world hello world hello " "world hello world hello world"
|
||||
strconcat
|
||||
|
||||
Reference in New Issue
Block a user