This commit is contained in:
2024-02-19 11:21:07 +01:00
parent de0377397f
commit e8dfb94860
34 changed files with 295 additions and 38 deletions

0
tests/01_none.expected Normal file
View File

View File

@ -0,0 +1 @@
2

1
tests/03_math.expected Normal file
View File

@ -0,0 +1 @@
4 2.0 2

1
tests/04_scope.expected Normal file
View File

@ -0,0 +1 @@
5

1
tests/05_maybe.expected1 Normal file
View File

@ -0,0 +1 @@
1

1
tests/05_maybe.expected2 Normal file
View File

@ -0,0 +1 @@
2

1
tests/06_if.expected Normal file
View File

@ -0,0 +1 @@
b

View File

@ -0,0 +1 @@
5

View File

@ -0,0 +1,3 @@
7
5
5 6

View File

@ -3,4 +3,6 @@ $ 1 + 2 * 3 -> x|
do print<variable x;>|
$ 5 -> y if variable x = 7|
do print<variable y;>|
$$5 -> z + 1 -> a|
do print<variable z; variable a;>|
goodbye|

5
tests/09_fib.expected Normal file
View File

@ -0,0 +1,5 @@
1
1
2
8
55

1
tests/10_E001.expected Normal file
View File

@ -0,0 +1 @@
E001: No greeting

2
tests/10_E001.plthy Normal file
View File

@ -0,0 +1,2 @@
$2 -> x|
goodbye|

1
tests/11_E002.expected Normal file
View File

@ -0,0 +1 @@
E002: No valediction

2
tests/11_E002.plthy Normal file
View File

@ -0,0 +1,2 @@
hello|
$2 -> x|

3
tests/12_list.expected Normal file
View File

@ -0,0 +1,3 @@
[1, 2, 3]
3
2

6
tests/12_list.plthy Normal file
View File

@ -0,0 +1,6 @@
hello|
${1;2;3;} -> x|
do print<variable x;>|
${1;1+1;do print<3;>;} -> y|
do print<variable y{5 - 4};>|
goodbye|