File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1450,6 +1450,23 @@ def my_concat(x: str, y: str) -> str:
1450
1450
CHECK (std::strcmp (r.result .str , " Python REPL" ) == 0 );
1451
1451
}
1452
1452
1453
+ TEST_CASE (" PythonCompiler Array 1" ) {
1454
+ CompilerOptions cu;
1455
+ cu.po .disable_main = true ;
1456
+ cu.emit_debug_line_column = false ;
1457
+ cu.generate_object_code = false ;
1458
+ cu.interactive = true ;
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]" );
1463
+ CHECK (r.ok );
1464
+ CHECK (r.result .type == PythonCompiler::EvalResult::none);
1465
+ r = e.evaluate2 (" print(i)" );
1466
+ CHECK (r.ok );
1467
+ CHECK (r.result .type == PythonCompiler::EvalResult::statement);
1468
+ }
1469
+
1453
1470
TEST_CASE (" PythonCompiler asr verify 1" ) {
1454
1471
CompilerOptions cu;
1455
1472
cu.po .disable_main = true ;
You can’t perform that action at this time.
0 commit comments