Skip to content

Commit

Permalink
fix test for the changes in main
Browse files Browse the repository at this point in the history
  • Loading branch information
Vipul-Cariappa committed Jun 5, 2024
1 parent 5469ddf commit d899b15
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lpython/tests/test_llvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -633,12 +633,13 @@ TEST_CASE("PythonCompiler 2") {
PythonCompiler e(cu);
LCompilers::Result<PythonCompiler::EvalResult>

r = e.evaluate2("i: i32 = 3 % 1");
r = e.evaluate2("i: i32 = 3 % 2");
CHECK(r.ok);
CHECK(r.result.type == PythonCompiler::EvalResult::none);
r = e.evaluate2("i");
CHECK(r.ok);
CHECK(r.result.type == PythonCompiler::EvalResult::none); // TODO: change to integer4 and check the value once printing top level expressions is implemented
CHECK(r.result.type == PythonCompiler::EvalResult::integer4);
CHECK(r.result.i32 == 1);
}

TEST_CASE("PythonCompiler i32 expressions") {
Expand Down

0 comments on commit d899b15

Please sign in to comment.