Skip to content

Commit

Permalink
Add two tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeRoggenbuck committed Jun 23, 2024
1 parent 10b816a commit 5c710e3
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/identtest.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* We should get the tokens in order:
int
main
(
)
{
int
a
=
100
;
return
a
*
5
;
[end of file]
*/

int main() {
int a = 100;
return a * 5;
}
21 changes: 21 additions & 0 deletions tests/mathtest.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* We should get the tokens in order:
int
main
(
)
{
return
(
100
*
4
)
+
3
;
[end of file]
*/

int main() {
return (100 * 4) + 3;
}

0 comments on commit 5c710e3

Please sign in to comment.