Skip to content

Commit

Permalink
Added another interpreter test...
Browse files Browse the repository at this point in the history
  • Loading branch information
FlatAssembler committed Sep 15, 2024
1 parent 93de450 commit aa549bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ void interpreterTests() {
(-3 < -2 < -1) and
(3 > 2 > 1)
)", "1"},
{"5 + + 1", "6"}
{"5 + + 1", "6"},
{"5*-1", "-5"}
});
for (unsigned int i = 0; i < tests.size(); i++) {
std::string result = std::to_string(
Expand Down

0 comments on commit aa549bd

Please sign in to comment.