Skip to content

Commit d899b15

Browse files
fix test for the changes in main
1 parent 5469ddf commit d899b15

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lpython/tests/test_llvm.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,12 +633,13 @@ TEST_CASE("PythonCompiler 2") {
633633
PythonCompiler e(cu);
634634
LCompilers::Result<PythonCompiler::EvalResult>
635635

636-
r = e.evaluate2("i: i32 = 3 % 1");
636+
r = e.evaluate2("i: i32 = 3 % 2");
637637
CHECK(r.ok);
638638
CHECK(r.result.type == PythonCompiler::EvalResult::none);
639639
r = e.evaluate2("i");
640640
CHECK(r.ok);
641-
CHECK(r.result.type == PythonCompiler::EvalResult::none); // TODO: change to integer4 and check the value once printing top level expressions is implemented
641+
CHECK(r.result.type == PythonCompiler::EvalResult::integer4);
642+
CHECK(r.result.i32 == 1);
642643
}
643644

644645
TEST_CASE("PythonCompiler i32 expressions") {

0 commit comments

Comments
 (0)