Add testing
This commit is contained in:
parent
88ca215573
commit
c33b2eee86
9 changed files with 109 additions and 6 deletions
13
tests/programs/int/1.omgpl
Normal file
13
tests/programs/int/1.omgpl
Normal file
|
@ -0,0 +1,13 @@
|
|||
int x = 0;
|
||||
for (int i = 0; i < 10; i += 1) {
|
||||
x += i;
|
||||
}
|
||||
print(x);
|
||||
for (int i = 0; i < 10; i += 1) {
|
||||
x -= i;
|
||||
}
|
||||
print(x);
|
||||
for (int i = 0; i < 4; i += 1) {
|
||||
x = (x + 1) * i;
|
||||
}
|
||||
print(x);
|
3
tests/programs/int/1.res
Normal file
3
tests/programs/int/1.res
Normal file
|
@ -0,0 +1,3 @@
|
|||
45
|
||||
0
|
||||
15
|
Loading…
Add table
Add a link
Reference in a new issue