Skip to content

Commit f930e3c

Browse files
committed
chore: prettified ci output, added simple spec tests
1 parent 4b30b11 commit f930e3c

20 files changed

Lines changed: 48 additions & 22 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,20 @@ jobs:
2626
2727
- name: Run tests
2828
run: |
29-
echo "Running test1.o"
29+
echo "=============================="
30+
echo " Running test 1"
31+
echo "=============================="
3032
./lexer tests/test1.o || true
31-
echo "Running test2.o"
33+
echo "______________________________"
34+
35+
echo "=============================="
36+
echo " Running test 2"
37+
echo "=============================="
3238
./lexer tests/test2.o || true
33-
echo "Running test3.o"
39+
echo "______________________________"
40+
41+
echo "=============================="
42+
echo " Running test 3"
43+
echo "=============================="
3444
./lexer tests/test3.o || true
45+
echo "______________________________"
File renamed without changes.

tests/old/test1.o

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class Main {
2+
void main() {
3+
output("Hello, World!");
4+
}
5+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/old/test2.o

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Main {
2+
void main() {
3+
int x;
4+
x = 5;
5+
output(x);
6+
}
7+
}

0 commit comments

Comments
 (0)