Skip to content
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.

Commit

Permalink
Add some expression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkobelka committed Nov 25, 2017
1 parent 501b006 commit 32f9e39
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ifj2017/tests/04_expressions/31.code
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
' Random math expression test

scope
print 565656/(56565+(56567/565/6778*6567886)) * 4;
end scope
1 change: 1 addition & 0 deletions ifj2017/tests/04_expressions/31.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14.7325
8 changes: 8 additions & 0 deletions ifj2017/tests/04_expressions/32.code
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
' Random math expression test

scope
dim a as double
a = (565656\(1689\1.001\1.51111)+55656/5665\3.5\1.5\5.5) / 3
print a;

end scope
1 change: 1 addition & 0 deletions ifj2017/tests/04_expressions/32.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
223.333
7 changes: 7 additions & 0 deletions ifj2017/tests/04_expressions/33.code
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
' Random math expression with -

scope
dim a as double
print ((0-4576.5656*4)*676/5/65.67\6.68*(0-58.56678))/(0-5);

end scope
1 change: 1 addition & 0 deletions ifj2017/tests/04_expressions/33.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-19.2
7 changes: 7 additions & 0 deletions ifj2017/tests/04_expressions/34.code
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
' Random math expression with -

scope
dim a as double
print ((0-5)*(0-6))*(0-7);

end scope
1 change: 1 addition & 0 deletions ifj2017/tests/04_expressions/34.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-210
5 changes: 5 additions & 0 deletions ifj2017/tests/04_expressions/35.code
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
' Expression with -

scope
print 0-54577;
end scope
1 change: 1 addition & 0 deletions ifj2017/tests/04_expressions/35.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-54577

0 comments on commit 32f9e39

Please sign in to comment.