We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f3badb commit e894562Copy full SHA for e894562
src/lpython/tests/test_llvm.cpp
@@ -1459,9 +1459,9 @@ TEST_CASE("PythonCompiler Array 1") {
1459
cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
1460
PythonCompiler e(cu);
1461
LCompilers::Result<PythonCompiler::EvalResult>
1462
- r = e.evaluate2("i: i32[10]");
+ r = e.evaluate2("i: i32[10] = empty(10, dtype=int32)");
1463
CHECK(r.ok);
1464
- CHECK(r.result.type == PythonCompiler::EvalResult::none);
+ CHECK(r.result.type == PythonCompiler::EvalResult::statement);
1465
r = e.evaluate2("print(i)");
1466
1467
CHECK(r.result.type == PythonCompiler::EvalResult::statement);
0 commit comments