Thanks to visit codestin.com Credit goes to github.com
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 8f1e9fe commit e41bd29Copy full SHA for e41bd29
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