moved test scripts to new tests dir and made them executable

This commit is contained in:
Bob Polis 2020-09-21 10:45:06 +02:00
parent 749ae0faa7
commit 98602abb9e
4 changed files with 8 additions and 0 deletions

2
code/gcd.txt → tests/gcd Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env curly
>main >main
gto gto
:gcd :gcd
@ -48,4 +49,5 @@ ret
6 6
>lcm >lcm
fun fun
out
end end

2
code/hello.txt → tests/hello Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env curly
3 3
=cnt =cnt
\Hello, world! \Hello, world!
@ -18,4 +19,5 @@ $cnt
>loop >loop
ggt ggt
$result $result
out
end end

2
code/slicer.txt → tests/slicer Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env curly
>main >main
gto gto
:slicer :slicer
@ -37,4 +38,5 @@ len
2 2
>slicer >slicer
fun fun
out
end end

2
code/whats-your-name.txt → tests/whats-your-name Normal file → Executable file
View File

@ -1,6 +1,8 @@
#!/usr/bin/env curly
\What's your name? \What's your name?
out out
\Hello, \Hello,
inp inp
cat cat
out
end end