Add testing
This commit is contained in:
parent
88ca215573
commit
c33b2eee86
9 changed files with 109 additions and 6 deletions
11
tests/programs/string/1.omgpl
Normal file
11
tests/programs/string/1.omgpl
Normal file
|
@ -0,0 +1,11 @@
|
|||
string s = "";
|
||||
|
||||
for (int i = 0; i < 10; i += 1) {
|
||||
if ((i / 2) * 2 == i) {
|
||||
s += "a";
|
||||
}
|
||||
if ((i / 2) * 2 != i) {
|
||||
s += "b";
|
||||
}
|
||||
}
|
||||
print(s);
|
1
tests/programs/string/1.res
Normal file
1
tests/programs/string/1.res
Normal file
|
@ -0,0 +1 @@
|
|||
ababababab
|
Loading…
Add table
Add a link
Reference in a new issue