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

53
tests/gcd Executable file
View File

@@ -0,0 +1,53 @@
#!/usr/bin/env curly
>main
gto
:gcd
=v
=u
$u
$v
>gcd-loop
gge
$u
=t
$v
=u
$t
=v
:gcd-loop
$v
0
>gcd-ret
gle
$v
=t
$u
$v
mod
=v
$t
=u
>gcd-loop
gto
:gcd-ret
$u
ret
:lcm
=b
=a
$a
$a
$b
>gcd
fun
div
$b
mul
ret
:main
21
6
>lcm
fun
out
end