From b997d2d0cddb88b47aa320b9cf6e74aa8281b91d Mon Sep 17 00:00:00 2001 From: Harsh Singh Jadon Date: Sun, 26 Mar 2023 15:13:10 +0530 Subject: [PATCH] Updated test references --- tests/reference/asr-array_01_decl-39cf894.json | 10 +++++----- tests/reference/asr-array_01_decl-39cf894.stderr | 5 +++++ tests/reference/asr-array_02_decl-e8f6874.json | 10 +++++----- tests/reference/asr-array_02_decl-e8f6874.stderr | 5 +++++ tests/reference/asr-assign2-8d1a2ee.json | 10 +++++----- tests/reference/asr-assign2-8d1a2ee.stderr | 5 +++++ tests/reference/asr-bindc_01-6d521a9.json | 10 +++++----- tests/reference/asr-bindc_01-6d521a9.stderr | 5 +++++ tests/reference/asr-bindc_01-f761165.json | 2 +- tests/reference/asr-bindc_01-f761165.stderr | 11 ++++------- tests/reference/asr-bindc_02-5092d8e.json | 2 +- tests/reference/asr-bindc_02-5092d8e.stderr | 11 ++++------- tests/reference/asr-bindc_02-bc1a7ea.json | 10 +++++----- tests/reference/asr-bindc_02-bc1a7ea.stderr | 5 +++++ tests/reference/asr-bindc_03-95dbba7.json | 2 +- tests/reference/asr-bindc_03-95dbba7.stderr | 10 +++++----- tests/reference/asr-c_interop1-cf2e9b4.json | 10 +++++----- tests/reference/asr-c_interop1-cf2e9b4.stderr | 5 +++++ tests/reference/asr-cast-435c233.json | 10 +++++----- tests/reference/asr-cast-435c233.stderr | 11 +++++++++++ tests/reference/asr-complex1-f26c460.json | 10 +++++----- tests/reference/asr-complex1-f26c460.stderr | 5 +++++ tests/reference/asr-const_01-af8289b.json | 2 +- tests/reference/asr-const_01-af8289b.stderr | 8 ++++---- tests/reference/asr-const_02-fce29b7.json | 2 +- tests/reference/asr-const_02-fce29b7.stderr | 8 ++++---- tests/reference/asr-constants1-5828e8a.json | 10 +++++----- tests/reference/asr-constants1-5828e8a.stderr | 5 +++++ tests/reference/asr-cptr_01-4e660f1.json | 2 +- tests/reference/asr-cptr_01-4e660f1.stderr | 8 ++++---- .../asr-doconcurrentloop_01-3fdc189.json | 10 +++++----- .../asr-doconcurrentloop_01-3fdc189.stderr | 5 +++++ tests/reference/asr-elemental_01-b58df26.json | 10 +++++----- tests/reference/asr-elemental_01-b58df26.stderr | 5 +++++ tests/reference/asr-enum_01-30e1b4a.json | 2 +- tests/reference/asr-enum_01-30e1b4a.stderr | 12 ++++-------- tests/reference/asr-enum_02-54656c5.json | 2 +- tests/reference/asr-enum_02-54656c5.stderr | 12 ++++-------- tests/reference/asr-expr10-efcbb1b.json | 10 +++++----- tests/reference/asr-expr10-efcbb1b.stderr | 5 +++++ tests/reference/asr-expr13-81bdb5a.json | 10 +++++----- tests/reference/asr-expr13-81bdb5a.stderr | 11 +++++++++++ tests/reference/asr-expr7-480ba2f.json | 8 ++++---- tests/reference/asr-expr7-480ba2f.stderr | 14 ++++---------- tests/reference/asr-expr8-6beda60.json | 10 +++++----- tests/reference/asr-expr8-6beda60.stderr | 5 +++++ tests/reference/asr-expr_01-a0d4829.json | 10 +++++----- tests/reference/asr-expr_01-a0d4829.stderr | 5 +++++ tests/reference/asr-expr_05-3a37324.json | 10 +++++----- tests/reference/asr-expr_05-3a37324.stderr | 5 +++++ tests/reference/asr-expr_07-7742668.json | 10 +++++----- tests/reference/asr-expr_07-7742668.stderr | 5 +++++ tests/reference/asr-expr_09-f3e89c8.json | 10 +++++----- tests/reference/asr-expr_09-f3e89c8.stderr | 5 +++++ tests/reference/asr-expr_10-d39708c.json | 10 +++++----- tests/reference/asr-expr_10-d39708c.stderr | 5 +++++ tests/reference/asr-expr_12-6769be0.json | 10 +++++----- tests/reference/asr-expr_12-6769be0.stderr | 5 +++++ tests/reference/asr-expr_14-f2bd343.json | 10 +++++----- tests/reference/asr-expr_14-f2bd343.stderr | 5 +++++ tests/reference/asr-func_01-d87aa4a.json | 2 +- tests/reference/asr-func_01-d87aa4a.stderr | 14 +++++--------- tests/reference/asr-func_inline_01-56af272.json | 10 +++++----- .../reference/asr-func_inline_01-56af272.stderr | 5 +++++ tests/reference/asr-generics_01-d616074.json | 10 +++++----- tests/reference/asr-generics_01-d616074.stderr | 5 +++++ tests/reference/asr-generics_02-e2ea5c9.json | 10 +++++----- tests/reference/asr-generics_02-e2ea5c9.stderr | 5 +++++ .../reference/asr-generics_array_01-682b1b2.json | 10 +++++----- .../asr-generics_array_01-682b1b2.stderr | 5 +++++ .../reference/asr-generics_array_02-22c8dc1.json | 10 +++++----- .../asr-generics_array_02-22c8dc1.stderr | 5 +++++ .../reference/asr-generics_array_03-fb3706c.json | 10 +++++----- .../asr-generics_array_03-fb3706c.stderr | 5 +++++ .../reference/asr-generics_error_01-1e05cd6.json | 2 +- .../asr-generics_error_01-1e05cd6.stderr | 10 +++++----- .../reference/asr-generics_error_02-d614928.json | 2 +- .../asr-generics_error_02-d614928.stderr | 10 +++++----- .../reference/asr-generics_error_03-208d10d.json | 2 +- .../asr-generics_error_03-208d10d.stderr | 14 +++++--------- .../reference/asr-generics_list_01-39c4044.json | 10 +++++----- .../asr-generics_list_01-39c4044.stderr | 5 +++++ tests/reference/asr-global_syms_01-273906f.json | 10 +++++----- .../reference/asr-global_syms_01-273906f.stderr | 5 +++++ tests/reference/asr-kwargs_01_error-ab9530d.json | 2 +- .../reference/asr-kwargs_01_error-ab9530d.stderr | 10 +++++----- tests/reference/asr-kwargs_02_error-7c91f8f.json | 2 +- .../reference/asr-kwargs_02_error-7c91f8f.stderr | 10 +++++----- tests/reference/asr-kwargs_03_error-a68cc46.json | 2 +- .../reference/asr-kwargs_03_error-a68cc46.stderr | 10 +++++----- tests/reference/asr-loop1-10d3109.json | 10 +++++----- tests/reference/asr-loop1-10d3109.stderr | 5 +++++ tests/reference/asr-loop2-e874469.json | 10 +++++----- tests/reference/asr-loop2-e874469.stderr | 11 +++++++++++ tests/reference/asr-loop_01-e7aa06a.json | 2 +- tests/reference/asr-loop_01-e7aa06a.stderr | 8 ++++---- tests/reference/asr-loop_02-5741651.json | 2 +- tests/reference/asr-loop_02-5741651.stderr | 8 ++++---- tests/reference/asr-print_02-afbe092.json | 10 +++++----- tests/reference/asr-print_02-afbe092.stderr | 5 +++++ tests/reference/asr-structs_01-0893e35.json | 2 +- tests/reference/asr-structs_01-0893e35.stderr | 8 ++++---- tests/reference/asr-structs_01-be14d49.json | 10 +++++----- tests/reference/asr-structs_01-be14d49.stderr | 5 +++++ tests/reference/asr-structs_02-2ab459a.json | 10 +++++----- tests/reference/asr-structs_02-2ab459a.stderr | 5 +++++ tests/reference/asr-structs_03-0cef911.json | 10 +++++----- tests/reference/asr-structs_03-0cef911.stderr | 5 +++++ tests/reference/asr-structs_04-387747b.json | 10 +++++----- tests/reference/asr-structs_04-387747b.stderr | 5 +++++ tests/reference/asr-structs_05-fa98307.json | 10 +++++----- tests/reference/asr-structs_05-fa98307.stderr | 5 +++++ ...asr-test_annassign_type_mismatch-7dac7be.json | 2 +- ...r-test_annassign_type_mismatch-7dac7be.stderr | 8 ++++---- ...sr-test_annassign_type_mismatch2-fc883f7.json | 2 +- ...-test_annassign_type_mismatch2-fc883f7.stderr | 8 ++++---- .../asr-test_append_type_mismatch-030e9c7.json | 2 +- .../asr-test_append_type_mismatch-030e9c7.stderr | 8 ++++---- tests/reference/asr-test_assign4-a2136e0.json | 2 +- tests/reference/asr-test_assign4-a2136e0.stderr | 8 ++++---- tests/reference/asr-test_assign8-4b26e63.json | 2 +- tests/reference/asr-test_assign8-4b26e63.stderr | 8 ++++---- tests/reference/asr-test_binop3-a67201d.json | 2 +- tests/reference/asr-test_binop3-a67201d.stderr | 8 ++++---- .../asr-test_bitwise_on_complex-dd9568b.json | 2 +- .../asr-test_bitwise_on_complex-dd9568b.stderr | 8 ++++---- .../asr-test_bitwise_on_float-2e09b30.json | 2 +- .../asr-test_bitwise_on_float-2e09b30.stderr | 8 ++++---- tests/reference/asr-test_bool_binop-f856ef0.json | 10 +++++----- .../reference/asr-test_bool_binop-f856ef0.stderr | 5 +++++ tests/reference/asr-test_builtin-aa64615.json | 10 +++++----- tests/reference/asr-test_builtin-aa64615.stderr | 5 +++++ .../reference/asr-test_builtin_abs-c74d2c9.json | 10 +++++----- .../asr-test_builtin_abs-c74d2c9.stderr | 5 +++++ .../reference/asr-test_builtin_bin-52ba9fa.json | 10 +++++----- .../asr-test_builtin_bin-52ba9fa.stderr | 5 +++++ .../reference/asr-test_builtin_bool-330223a.json | 10 +++++----- .../asr-test_builtin_bool-330223a.stderr | 5 +++++ .../asr-test_builtin_float-20601dd.json | 10 +++++----- .../asr-test_builtin_float-20601dd.stderr | 5 +++++ .../reference/asr-test_builtin_hex-64bd268.json | 10 +++++----- .../asr-test_builtin_hex-64bd268.stderr | 5 +++++ .../reference/asr-test_builtin_int-8f88fdc.json | 10 +++++----- .../asr-test_builtin_int-8f88fdc.stderr | 5 +++++ .../reference/asr-test_builtin_len-55b0dec.json | 10 +++++----- .../asr-test_builtin_len-55b0dec.stderr | 5 +++++ .../reference/asr-test_builtin_oct-20b9066.json | 10 +++++----- .../asr-test_builtin_oct-20b9066.stderr | 5 +++++ .../reference/asr-test_builtin_pow-f02fcda.json | 8 ++++---- .../asr-test_builtin_pow-f02fcda.stderr | 10 +++++----- .../asr-test_builtin_round-7417a21.json | 10 +++++----- .../asr-test_builtin_round-7417a21.stderr | 5 +++++ .../reference/asr-test_builtin_str-580e920.json | 10 +++++----- .../asr-test_builtin_str-580e920.stderr | 5 +++++ .../reference/asr-test_c_interop_01-e374f43.json | 10 +++++----- .../asr-test_c_interop_01-e374f43.stderr | 5 +++++ tests/reference/asr-test_complex_01-a6def58.json | 10 +++++----- .../reference/asr-test_complex_01-a6def58.stderr | 5 +++++ tests/reference/asr-test_complex_02-782ba2d.json | 10 +++++----- .../reference/asr-test_complex_02-782ba2d.stderr | 5 +++++ tests/reference/asr-test_dict10-8c0beff.json | 2 +- tests/reference/asr-test_dict10-8c0beff.stderr | 8 ++++---- tests/reference/asr-test_dict11-2ab4e6c.json | 2 +- tests/reference/asr-test_dict11-2ab4e6c.stderr | 8 ++++---- tests/reference/asr-test_dict13-683b290.json | 2 +- tests/reference/asr-test_dict13-683b290.stderr | 12 +++++++++--- tests/reference/asr-test_dict8-d960ce0.json | 2 +- tests/reference/asr-test_dict8-d960ce0.stderr | 8 ++++---- tests/reference/asr-test_dict9-907bda7.json | 2 +- tests/reference/asr-test_dict9-907bda7.stderr | 8 ++++---- tests/reference/asr-test_func_args-a898a72.json | 2 +- .../reference/asr-test_func_args-a898a72.stderr | 10 +++++----- tests/reference/asr-test_goto-ba9fd22.json | 2 +- tests/reference/asr-test_goto-ba9fd22.stderr | 8 ++++---- tests/reference/asr-test_import_01-b859c43.json | 2 +- .../reference/asr-test_import_01-b859c43.stderr | 13 ++++--------- tests/reference/asr-test_import_02-55b47fa.json | 6 +++--- .../asr-test_integer_bitnot-08e2e96.json | 10 +++++----- .../asr-test_integer_bitnot-08e2e96.stderr | 5 +++++ tests/reference/asr-test_list1-73fd538.json | 2 +- tests/reference/asr-test_list1-73fd538.stderr | 8 ++++---- tests/reference/asr-test_list2-10ffdd7.json | 2 +- tests/reference/asr-test_list2-10ffdd7.stderr | 8 ++++---- tests/reference/asr-test_list4-d18a7e3.json | 2 +- tests/reference/asr-test_list4-d18a7e3.stderr | 8 ++++---- .../reference/asr-test_list_concat-41d186f.json | 2 +- .../asr-test_list_concat-41d186f.stderr | 8 ++++---- tests/reference/asr-test_max_min-3c2fc51.json | 10 +++++----- tests/reference/asr-test_max_min-3c2fc51.stderr | 5 +++++ tests/reference/asr-test_numpy_03-e600a49.json | 10 +++++----- tests/reference/asr-test_numpy_03-e600a49.stderr | 5 +++++ tests/reference/asr-test_numpy_04-ecbb614.json | 10 +++++----- tests/reference/asr-test_numpy_04-ecbb614.stderr | 5 +++++ .../asr-test_pointer_types-1bf0d01.json | 2 +- .../asr-test_pointer_types-1bf0d01.stderr | 8 ++++---- tests/reference/asr-test_pow-3f5d550.json | 8 ++++---- tests/reference/asr-test_pow-3f5d550.stderr | 10 ++++++++-- tests/reference/asr-test_pow1-581ef42.json | 2 +- tests/reference/asr-test_pow1-581ef42.stderr | 12 ++++++------ tests/reference/asr-test_pow2-0dcbd7d.json | 2 +- tests/reference/asr-test_pow2-0dcbd7d.stderr | 16 +++++----------- tests/reference/asr-test_pow3-79749ed.json | 2 +- tests/reference/asr-test_pow3-79749ed.stderr | 14 ++++---------- tests/reference/asr-test_pow4-ef60978.json | 2 +- tests/reference/asr-test_pow4-ef60978.stderr | 16 +++++----------- tests/reference/asr-test_set1-11379c7.json | 2 +- tests/reference/asr-test_set1-11379c7.stderr | 8 ++++---- tests/reference/asr-test_set2-d91a6f0.json | 2 +- tests/reference/asr-test_set2-d91a6f0.stderr | 8 ++++---- .../reference/asr-test_set_indexing-a1c21b8.json | 2 +- .../asr-test_set_indexing-a1c21b8.stderr | 8 ++++---- .../asr-test_zero_division4-bf4af64.json | 2 +- .../asr-test_zero_division4-bf4af64.stderr | 8 ++++---- tests/reference/asr-tuple1-09972ab.json | 10 +++++----- tests/reference/asr-tuple1-09972ab.stderr | 5 +++++ tests/reference/asr-type_mismatch-61052c7.json | 2 +- tests/reference/asr-type_mismatch-61052c7.stderr | 8 ++++---- tests/reference/asr-vec_01-66ac423.json | 10 +++++----- tests/reference/asr-vec_01-66ac423.stderr | 5 +++++ tests/reference/c-c_interop1-e215531.json | 10 +++++----- tests/reference/c-c_interop1-e215531.stderr | 5 +++++ tests/reference/c-expr7-bb2692a.json | 8 ++++---- tests/reference/c-expr7-bb2692a.stderr | 14 ++++---------- tests/reference/c-expr_01-28f449f.json | 10 +++++----- tests/reference/c-expr_01-28f449f.stderr | 5 +++++ tests/reference/c-expr_11-c452314.json | 10 +++++----- tests/reference/c-expr_11-c452314.stderr | 5 +++++ tests/reference/c-expr_12-93c7780.json | 10 +++++----- tests/reference/c-expr_12-93c7780.stderr | 5 +++++ tests/reference/c-func_static_01-fc146ec.json | 10 +++++----- tests/reference/c-func_static_01-fc146ec.stderr | 5 +++++ tests/reference/c-loop1-3e341c7.json | 10 +++++----- tests/reference/c-loop1-3e341c7.stderr | 5 +++++ tests/reference/c-loop2-ce7de51.json | 10 +++++----- tests/reference/c-loop2-ce7de51.stderr | 11 +++++++++++ tests/reference/c-test_import_02-d2c54c4.json | 6 +++--- tests/reference/c-test_issue_518-fbbd299.json | 10 +++++----- tests/reference/c-test_issue_518-fbbd299.stderr | 5 +++++ .../cpp-doconcurrentloop_01-4e9f274.json | 10 +++++----- .../cpp-doconcurrentloop_01-4e9f274.stderr | 5 +++++ tests/reference/cpp-expr15-1661c0d.json | 10 +++++----- tests/reference/cpp-expr15-1661c0d.stderr | 5 +++++ tests/reference/cpp-expr7-529bd53.json | 8 ++++---- tests/reference/cpp-expr7-529bd53.stderr | 14 ++++---------- tests/reference/cpp-expr8-704cece.json | 10 +++++----- tests/reference/cpp-expr8-704cece.stderr | 5 +++++ tests/reference/cpp-expr_11-422c839.json | 10 +++++----- tests/reference/cpp-expr_11-422c839.stderr | 5 +++++ tests/reference/cpp-loop1-0a8cf3b.json | 10 +++++----- tests/reference/cpp-loop1-0a8cf3b.stderr | 5 +++++ tests/reference/cpp-loop2-0686fc4.json | 10 +++++----- tests/reference/cpp-loop2-0686fc4.stderr | 11 +++++++++++ .../reference/cpp-test_builtin_pow-56b3f92.json | 8 ++++---- .../cpp-test_builtin_pow-56b3f92.stderr | 10 +++++----- .../cpp-test_integer_bitnot-20195fd.json | 10 +++++----- .../cpp-test_integer_bitnot-20195fd.stderr | 5 +++++ tests/reference/llvm-bindc_01-c984f09.json | 10 +++++----- tests/reference/llvm-bindc_01-c984f09.stderr | 5 +++++ tests/reference/llvm-func_inline_01-2d4583a.json | 10 +++++----- .../reference/llvm-func_inline_01-2d4583a.stderr | 5 +++++ tests/reference/llvm-lpython1-23c5987.json | 10 +++++----- tests/reference/llvm-lpython1-23c5987.stderr | 5 +++++ tests/reference/llvm-print_04-443a8d8.json | 10 +++++----- tests/reference/llvm-print_04-443a8d8.stderr | 5 +++++ .../llvm-test_integer_bitnot-6894b6d.json | 10 +++++----- .../llvm-test_integer_bitnot-6894b6d.stderr | 5 +++++ tests/reference/llvm-test_issue_518-cdb641a.json | 10 +++++----- .../reference/llvm-test_issue_518-cdb641a.stderr | 5 +++++ ...ne_function_calls-func_inline_01-8b6a5da.json | 10 +++++----- ..._function_calls-func_inline_01-8b6a5da.stderr | 5 +++++ .../pass_loop_vectorise-vec_01-be9985e.json | 10 +++++----- .../pass_loop_vectorise-vec_01-be9985e.stderr | 5 +++++ .../pass_print_list_tuple-print_02-09600eb.json | 10 +++++----- ...pass_print_list_tuple-print_02-09600eb.stderr | 5 +++++ .../reference/runtime-test_list_01-3ee9b3e.json | 4 ++-- .../runtime-test_list_01-3ee9b3e.stderr | 6 +++++- .../reference/runtime-test_list_02-5f7db5f.json | 4 ++-- .../runtime-test_list_02-5f7db5f.stderr | 6 +++++- tests/reference/runtime-test_str_01-50bdf2f.json | 10 +++++----- .../reference/runtime-test_str_01-50bdf2f.stderr | 5 +++++ tests/reference/wat-loop1-e0046d4.json | 10 +++++----- tests/reference/wat-loop1-e0046d4.stderr | 5 +++++ 282 files changed, 1202 insertions(+), 795 deletions(-) create mode 100644 tests/reference/asr-array_01_decl-39cf894.stderr create mode 100644 tests/reference/asr-array_02_decl-e8f6874.stderr create mode 100644 tests/reference/asr-assign2-8d1a2ee.stderr create mode 100644 tests/reference/asr-bindc_01-6d521a9.stderr create mode 100644 tests/reference/asr-bindc_02-bc1a7ea.stderr create mode 100644 tests/reference/asr-c_interop1-cf2e9b4.stderr create mode 100644 tests/reference/asr-cast-435c233.stderr create mode 100644 tests/reference/asr-complex1-f26c460.stderr create mode 100644 tests/reference/asr-constants1-5828e8a.stderr create mode 100644 tests/reference/asr-doconcurrentloop_01-3fdc189.stderr create mode 100644 tests/reference/asr-elemental_01-b58df26.stderr create mode 100644 tests/reference/asr-expr10-efcbb1b.stderr create mode 100644 tests/reference/asr-expr13-81bdb5a.stderr create mode 100644 tests/reference/asr-expr8-6beda60.stderr create mode 100644 tests/reference/asr-expr_01-a0d4829.stderr create mode 100644 tests/reference/asr-expr_05-3a37324.stderr create mode 100644 tests/reference/asr-expr_07-7742668.stderr create mode 100644 tests/reference/asr-expr_09-f3e89c8.stderr create mode 100644 tests/reference/asr-expr_10-d39708c.stderr create mode 100644 tests/reference/asr-expr_12-6769be0.stderr create mode 100644 tests/reference/asr-expr_14-f2bd343.stderr create mode 100644 tests/reference/asr-func_inline_01-56af272.stderr create mode 100644 tests/reference/asr-generics_01-d616074.stderr create mode 100644 tests/reference/asr-generics_02-e2ea5c9.stderr create mode 100644 tests/reference/asr-generics_array_01-682b1b2.stderr create mode 100644 tests/reference/asr-generics_array_02-22c8dc1.stderr create mode 100644 tests/reference/asr-generics_array_03-fb3706c.stderr create mode 100644 tests/reference/asr-generics_list_01-39c4044.stderr create mode 100644 tests/reference/asr-global_syms_01-273906f.stderr create mode 100644 tests/reference/asr-loop1-10d3109.stderr create mode 100644 tests/reference/asr-loop2-e874469.stderr create mode 100644 tests/reference/asr-print_02-afbe092.stderr create mode 100644 tests/reference/asr-structs_01-be14d49.stderr create mode 100644 tests/reference/asr-structs_02-2ab459a.stderr create mode 100644 tests/reference/asr-structs_03-0cef911.stderr create mode 100644 tests/reference/asr-structs_04-387747b.stderr create mode 100644 tests/reference/asr-structs_05-fa98307.stderr create mode 100644 tests/reference/asr-test_bool_binop-f856ef0.stderr create mode 100644 tests/reference/asr-test_builtin-aa64615.stderr create mode 100644 tests/reference/asr-test_builtin_abs-c74d2c9.stderr create mode 100644 tests/reference/asr-test_builtin_bin-52ba9fa.stderr create mode 100644 tests/reference/asr-test_builtin_bool-330223a.stderr create mode 100644 tests/reference/asr-test_builtin_float-20601dd.stderr create mode 100644 tests/reference/asr-test_builtin_hex-64bd268.stderr create mode 100644 tests/reference/asr-test_builtin_int-8f88fdc.stderr create mode 100644 tests/reference/asr-test_builtin_len-55b0dec.stderr create mode 100644 tests/reference/asr-test_builtin_oct-20b9066.stderr create mode 100644 tests/reference/asr-test_builtin_round-7417a21.stderr create mode 100644 tests/reference/asr-test_builtin_str-580e920.stderr create mode 100644 tests/reference/asr-test_c_interop_01-e374f43.stderr create mode 100644 tests/reference/asr-test_complex_01-a6def58.stderr create mode 100644 tests/reference/asr-test_complex_02-782ba2d.stderr create mode 100644 tests/reference/asr-test_integer_bitnot-08e2e96.stderr create mode 100644 tests/reference/asr-test_max_min-3c2fc51.stderr create mode 100644 tests/reference/asr-test_numpy_03-e600a49.stderr create mode 100644 tests/reference/asr-test_numpy_04-ecbb614.stderr create mode 100644 tests/reference/asr-tuple1-09972ab.stderr create mode 100644 tests/reference/asr-vec_01-66ac423.stderr create mode 100644 tests/reference/c-c_interop1-e215531.stderr create mode 100644 tests/reference/c-expr_01-28f449f.stderr create mode 100644 tests/reference/c-expr_11-c452314.stderr create mode 100644 tests/reference/c-expr_12-93c7780.stderr create mode 100644 tests/reference/c-func_static_01-fc146ec.stderr create mode 100644 tests/reference/c-loop1-3e341c7.stderr create mode 100644 tests/reference/c-loop2-ce7de51.stderr create mode 100644 tests/reference/c-test_issue_518-fbbd299.stderr create mode 100644 tests/reference/cpp-doconcurrentloop_01-4e9f274.stderr create mode 100644 tests/reference/cpp-expr15-1661c0d.stderr create mode 100644 tests/reference/cpp-expr8-704cece.stderr create mode 100644 tests/reference/cpp-expr_11-422c839.stderr create mode 100644 tests/reference/cpp-loop1-0a8cf3b.stderr create mode 100644 tests/reference/cpp-loop2-0686fc4.stderr create mode 100644 tests/reference/cpp-test_integer_bitnot-20195fd.stderr create mode 100644 tests/reference/llvm-bindc_01-c984f09.stderr create mode 100644 tests/reference/llvm-func_inline_01-2d4583a.stderr create mode 100644 tests/reference/llvm-lpython1-23c5987.stderr create mode 100644 tests/reference/llvm-print_04-443a8d8.stderr create mode 100644 tests/reference/llvm-test_integer_bitnot-6894b6d.stderr create mode 100644 tests/reference/llvm-test_issue_518-cdb641a.stderr create mode 100644 tests/reference/pass_inline_function_calls-func_inline_01-8b6a5da.stderr create mode 100644 tests/reference/pass_loop_vectorise-vec_01-be9985e.stderr create mode 100644 tests/reference/pass_print_list_tuple-print_02-09600eb.stderr create mode 100644 tests/reference/runtime-test_str_01-50bdf2f.stderr create mode 100644 tests/reference/wat-loop1-e0046d4.stderr diff --git a/tests/reference/asr-array_01_decl-39cf894.json b/tests/reference/asr-array_01_decl-39cf894.json index b509c1b512d..eca5102fafa 100644 --- a/tests/reference/asr-array_01_decl-39cf894.json +++ b/tests/reference/asr-array_01_decl-39cf894.json @@ -5,9 +5,9 @@ "infile_hash": "3dff59bab7475d254ce0470065c11e797e52a5b2a3d7546acc0e6705", "outfile": null, "outfile_hash": null, - "stdout": "asr-array_01_decl-39cf894.stdout", - "stdout_hash": "727055df38a227893ef5812d356ccd243d9803554a65f1583b873136", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-array_01_decl-39cf894.stderr", + "stderr_hash": "95bd3029e53df2b015f9895dcdd78075f8664d3d66437a9386aa1f62", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-array_01_decl-39cf894.stderr b/tests/reference/asr-array_01_decl-39cf894.stderr new file mode 100644 index 00000000000..eb6b7adeebe --- /dev/null +++ b/tests/reference/asr-array_01_decl-39cf894.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/array_01_decl.py:1:1 + | +1 | from lpython import i16, i32, i64, f32, f64, c32, c64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-array_02_decl-e8f6874.json b/tests/reference/asr-array_02_decl-e8f6874.json index 3faa316db02..1c29d1a41b3 100644 --- a/tests/reference/asr-array_02_decl-e8f6874.json +++ b/tests/reference/asr-array_02_decl-e8f6874.json @@ -5,9 +5,9 @@ "infile_hash": "8daa77dd2d5fe6c6f5f3ce867746c5e13290305ef7e1723ac9669285", "outfile": null, "outfile_hash": null, - "stdout": "asr-array_02_decl-e8f6874.stdout", - "stdout_hash": "b111594bed23c338b6484ecb531af8261a6154075395954ab56ecb4d", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-array_02_decl-e8f6874.stderr", + "stderr_hash": "c43d40a025dbd92be6cf7b3c54bc8b8ed2d0de70a5187e26e17063d7", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-array_02_decl-e8f6874.stderr b/tests/reference/asr-array_02_decl-e8f6874.stderr new file mode 100644 index 00000000000..45fa0c109d2 --- /dev/null +++ b/tests/reference/asr-array_02_decl-e8f6874.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/array_02_decl.py:1:1 + | +1 | from lpython import i32, i64, f32, f64, c32, c64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-assign2-8d1a2ee.json b/tests/reference/asr-assign2-8d1a2ee.json index fc3a287632c..3041710a59c 100644 --- a/tests/reference/asr-assign2-8d1a2ee.json +++ b/tests/reference/asr-assign2-8d1a2ee.json @@ -5,9 +5,9 @@ "infile_hash": "9b182950a8d1abbd951007b692fff95382e90ada103c7f14c4497b06", "outfile": null, "outfile_hash": null, - "stdout": "asr-assign2-8d1a2ee.stdout", - "stdout_hash": "e10bd03c1f7be986485bb69fca51d7278310e08673dea142a049ba64", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-assign2-8d1a2ee.stderr", + "stderr_hash": "3ffdefc537b0a2456cca8fd36592cc192e03c31890d68aebca4fcd50", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-assign2-8d1a2ee.stderr b/tests/reference/asr-assign2-8d1a2ee.stderr new file mode 100644 index 00000000000..6aed28369ab --- /dev/null +++ b/tests/reference/asr-assign2-8d1a2ee.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/assign2.py:1:1 + | +1 | from lpython import i32, i64, f32, f64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-bindc_01-6d521a9.json b/tests/reference/asr-bindc_01-6d521a9.json index 5a6c3f6e45e..06825391f65 100644 --- a/tests/reference/asr-bindc_01-6d521a9.json +++ b/tests/reference/asr-bindc_01-6d521a9.json @@ -5,9 +5,9 @@ "infile_hash": "f628ce81b32f2730f936232bb235f39d4372912bc332f3c97e983ad7", "outfile": null, "outfile_hash": null, - "stdout": "asr-bindc_01-6d521a9.stdout", - "stdout_hash": "5c4a171ee17ace3f7a4345e89b0c4de32abb0a74f4f97efdeb056563", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-bindc_01-6d521a9.stderr", + "stderr_hash": "9f13d106ce485a3fe83faf2279995d0891378caa2e38335033e4df08", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-bindc_01-6d521a9.stderr b/tests/reference/asr-bindc_01-6d521a9.stderr new file mode 100644 index 00000000000..95b30393e89 --- /dev/null +++ b/tests/reference/asr-bindc_01-6d521a9.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/bindc_01.py:1:1 + | +1 | from lpython import c_p_pointer, CPtr, i16, Pointer, empty_c_void_p + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-bindc_01-f761165.json b/tests/reference/asr-bindc_01-f761165.json index 24d385098d7..f1aad314561 100644 --- a/tests/reference/asr-bindc_01-f761165.json +++ b/tests/reference/asr-bindc_01-f761165.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-bindc_01-f761165.stderr", - "stderr_hash": "b2d416fa6afa00923a130cb76dbd580798a9ee0841e34980c531b050", + "stderr_hash": "5d66a4393db4f2c02c1216a8add6f86c8a8eeedfdb4c7ec691b7ffa9", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-bindc_01-f761165.stderr b/tests/reference/asr-bindc_01-f761165.stderr index 7fe85cd32b7..0de42488d39 100644 --- a/tests/reference/asr-bindc_01-f761165.stderr +++ b/tests/reference/asr-bindc_01-f761165.stderr @@ -1,8 +1,5 @@ -semantic error: Type mismatch in procedure call; the types must be compatible - --> tests/errors/bindc_01.py:9:14 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/bindc_01.py:1:1 | -9 | cptr_arg(int32obj) - | ^^^^^^^^ type mismatch (passed argument type is i32 but required type is CPtr) - | -4 | def cptr_arg(arg1: CPtr): - | ^^^^ type mismatch (passed argument type is i32 but required type is CPtr) +1 | from lpython import i32, CPtr, ccall + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-bindc_02-5092d8e.json b/tests/reference/asr-bindc_02-5092d8e.json index 6b3c472b5cd..aa19a3c72c0 100644 --- a/tests/reference/asr-bindc_02-5092d8e.json +++ b/tests/reference/asr-bindc_02-5092d8e.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-bindc_02-5092d8e.stderr", - "stderr_hash": "315076027d80c91db75f4ec44ea5cf8d5fd37a499a367f627b6f6553", + "stderr_hash": "572ffa5e16df2a226bf1de862bd9b322365b245db1f76e7842e5d6b7", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-bindc_02-5092d8e.stderr b/tests/reference/asr-bindc_02-5092d8e.stderr index 4ac4183597e..1807426eb18 100644 --- a/tests/reference/asr-bindc_02-5092d8e.stderr +++ b/tests/reference/asr-bindc_02-5092d8e.stderr @@ -1,8 +1,5 @@ -semantic error: Type mismatch in procedure call; the types must be compatible - --> tests/errors/bindc_02.py:9:24 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/bindc_02.py:1:1 | -9 | s: Struct = Struct(int32obj) - | ^^^^^^^^ type mismatch (passed argument type is i32 but required type is CPtr) - | -5 | cptr_member: CPtr - | ^^^^ type mismatch (passed argument type is i32 but required type is CPtr) +1 | from lpython import i32, CPtr, ccall, dataclass + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-bindc_02-bc1a7ea.json b/tests/reference/asr-bindc_02-bc1a7ea.json index 2737a72a94a..6ae2320cecb 100644 --- a/tests/reference/asr-bindc_02-bc1a7ea.json +++ b/tests/reference/asr-bindc_02-bc1a7ea.json @@ -5,9 +5,9 @@ "infile_hash": "f01761bc86ab282ba20778efe62f227b36929c0232cf5343588b5a85", "outfile": null, "outfile_hash": null, - "stdout": "asr-bindc_02-bc1a7ea.stdout", - "stdout_hash": "6a3fb73af1a02ee835c35978ce0575a61bc6954ae9ca304782e10213", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-bindc_02-bc1a7ea.stderr", + "stderr_hash": "9876bd15cdadb89282e6fb5fd8644649cc78f446cdb506eb2881e42f", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-bindc_02-bc1a7ea.stderr b/tests/reference/asr-bindc_02-bc1a7ea.stderr new file mode 100644 index 00000000000..c54b282533a --- /dev/null +++ b/tests/reference/asr-bindc_02-bc1a7ea.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/bindc_02.py:1:1 + | +1 | from lpython import c_p_pointer, CPtr, pointer, i16, Pointer, empty_c_void_p + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-bindc_03-95dbba7.json b/tests/reference/asr-bindc_03-95dbba7.json index b2a2020727f..580259a718d 100644 --- a/tests/reference/asr-bindc_03-95dbba7.json +++ b/tests/reference/asr-bindc_03-95dbba7.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-bindc_03-95dbba7.stderr", - "stderr_hash": "cd4fd2d0052b8923fd13ebba841ad7b6d91f28a68604d6ae1aa8ba99", + "stderr_hash": "70f62831a30f919484aca970d89c173cb5b0507b60473acda8d60808", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-bindc_03-95dbba7.stderr b/tests/reference/asr-bindc_03-95dbba7.stderr index 3be9b07bc5b..7ecf9ca8b80 100644 --- a/tests/reference/asr-bindc_03-95dbba7.stderr +++ b/tests/reference/asr-bindc_03-95dbba7.stderr @@ -1,5 +1,5 @@ -semantic error: Type mismatch in c_p_pointer and target variable, the types must match - --> tests/errors/bindc_03.py:20:16 - | -20 | C: Pointer[i16[n]] = c_p_pointer(b, i16[n * k]) - | ^^^^^^ ^^^^^^^^^^ type mismatch between target variable type and c_p_pointer allocation type) +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/bindc_03.py:2:1 + | +2 | from lpython import c_p_pointer, CPtr, i32, Pointer, i16 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-c_interop1-cf2e9b4.json b/tests/reference/asr-c_interop1-cf2e9b4.json index e97cc7baaac..8ce16ef2d7b 100644 --- a/tests/reference/asr-c_interop1-cf2e9b4.json +++ b/tests/reference/asr-c_interop1-cf2e9b4.json @@ -5,9 +5,9 @@ "infile_hash": "aeb797508318740ae58a14cf663910a8fa077c574eaf79b9f54656ef", "outfile": null, "outfile_hash": null, - "stdout": "asr-c_interop1-cf2e9b4.stdout", - "stdout_hash": "80ab1c87e3219bdcae0ac8b13f117bea0f8b71cbaa9fe8c4f0209c7c", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-c_interop1-cf2e9b4.stderr", + "stderr_hash": "a5009d074dbcdf28739ded753b91369ea1c5b8730449ff59aef76802", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-c_interop1-cf2e9b4.stderr b/tests/reference/asr-c_interop1-cf2e9b4.stderr new file mode 100644 index 00000000000..bcf3c905a8d --- /dev/null +++ b/tests/reference/asr-c_interop1-cf2e9b4.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/c_interop1.py:1:1 + | +1 | from lpython import ccall, f32, f64, i32, i64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-cast-435c233.json b/tests/reference/asr-cast-435c233.json index 62d7b6319f1..c5fba259a61 100644 --- a/tests/reference/asr-cast-435c233.json +++ b/tests/reference/asr-cast-435c233.json @@ -5,9 +5,9 @@ "infile_hash": "6e4219b25f4aa2035b57c9658dbb133f2dff55db0d9c128b19214f62", "outfile": null, "outfile_hash": null, - "stdout": "asr-cast-435c233.stdout", - "stdout_hash": "40a89cd5934acfbb7df7d3d03f36f0448eaec79c89231d161ec3e02a", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-cast-435c233.stderr", + "stderr_hash": "4ee12e1158dc9ca804a453f2ec293424bf09310d0ca7f01810870893", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-cast-435c233.stderr b/tests/reference/asr-cast-435c233.stderr new file mode 100644 index 00000000000..64992141517 --- /dev/null +++ b/tests/reference/asr-cast-435c233.stderr @@ -0,0 +1,11 @@ +warning: The module 'lpython_builtin' located in $DIR\src\bin/../runtime/lpython_builtin.py cannot be loaded + --> tests/cast.py:5:9 + | +5 | x = list(s) + | ^^^^^^^ imported here + +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> $DIR\src\bin/../runtime/lpython_builtin.py:1:1 + | +1 | from lpython import i8, i16, i32, i64, f32, f64, c32, c64, overload + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-complex1-f26c460.json b/tests/reference/asr-complex1-f26c460.json index 23c52b60322..1aaa75f5074 100644 --- a/tests/reference/asr-complex1-f26c460.json +++ b/tests/reference/asr-complex1-f26c460.json @@ -5,9 +5,9 @@ "infile_hash": "60b45de7b88ec768d70a3122b36545e9604a86504ed6e5d9d813c719", "outfile": null, "outfile_hash": null, - "stdout": "asr-complex1-f26c460.stdout", - "stdout_hash": "fae353e6a26fea49330cf569dc6ff1df06719accca409c25108382ec", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-complex1-f26c460.stderr", + "stderr_hash": "e04fe3c290890eb4df04dcbfce1f421776183ccf258ce5734e699e2e", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-complex1-f26c460.stderr b/tests/reference/asr-complex1-f26c460.stderr new file mode 100644 index 00000000000..ec79bb312b9 --- /dev/null +++ b/tests/reference/asr-complex1-f26c460.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/complex1.py:1:1 + | +1 | from lpython import c32, c64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-const_01-af8289b.json b/tests/reference/asr-const_01-af8289b.json index c54ff59cdd2..5d9e4d88acf 100644 --- a/tests/reference/asr-const_01-af8289b.json +++ b/tests/reference/asr-const_01-af8289b.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-const_01-af8289b.stderr", - "stderr_hash": "f47e74e916315ec82f38680f66c9cf5ef3c958bcdfa87b9efe09b264", + "stderr_hash": "d5332be7b5e24c84285afdb85684100451048056fec3d4c71d3d0cd6", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-const_01-af8289b.stderr b/tests/reference/asr-const_01-af8289b.stderr index 47034b61583..9e4afce5663 100644 --- a/tests/reference/asr-const_01-af8289b.stderr +++ b/tests/reference/asr-const_01-af8289b.stderr @@ -1,5 +1,5 @@ -semantic error: Constant variable x is not initialised at declaration. - --> tests/errors/const_01.py:4:5 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/const_01.py:1:1 | -4 | x: Const[i32] - | ^^^^^^^^^^^^^ +1 | from lpython import i32, Const + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-const_02-fce29b7.json b/tests/reference/asr-const_02-fce29b7.json index af31951d5b5..0d65c1e0249 100644 --- a/tests/reference/asr-const_02-fce29b7.json +++ b/tests/reference/asr-const_02-fce29b7.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-const_02-fce29b7.stderr", - "stderr_hash": "b8b90da28518edbe487dbe6f52f1f25f004042fe463e8fba7b96d174", + "stderr_hash": "b0e2305b90a909910f7ca31539a7265c5c84c89e7a0fa0646e7fcbd0", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-const_02-fce29b7.stderr b/tests/reference/asr-const_02-fce29b7.stderr index 3bdb12c2370..5f3d9c53d56 100644 --- a/tests/reference/asr-const_02-fce29b7.stderr +++ b/tests/reference/asr-const_02-fce29b7.stderr @@ -1,5 +1,5 @@ -semantic error: Targets with Const[i32] type cannot be re-assigned. - --> tests/errors/const_02.py:5:5 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/const_02.py:1:1 | -5 | x = 5 - | ^ +1 | from lpython import i32, Const + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-constants1-5828e8a.json b/tests/reference/asr-constants1-5828e8a.json index d52aafbe700..597b80a16f0 100644 --- a/tests/reference/asr-constants1-5828e8a.json +++ b/tests/reference/asr-constants1-5828e8a.json @@ -5,9 +5,9 @@ "infile_hash": "2ede5161e5a92199603f68b9913d658f7ae529c5377827e86054f28a", "outfile": null, "outfile_hash": null, - "stdout": "asr-constants1-5828e8a.stdout", - "stdout_hash": "f8357bb1659604d4fd93d1a22a719f8fbc801f934e2b6232cb26e9fa", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-constants1-5828e8a.stderr", + "stderr_hash": "4d2e3bd610809ff8d4c1d182b02f38084069441cb1acc8cc111a35ff", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-constants1-5828e8a.stderr b/tests/reference/asr-constants1-5828e8a.stderr new file mode 100644 index 00000000000..24713531572 --- /dev/null +++ b/tests/reference/asr-constants1-5828e8a.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/constants1.py:1:1 + | +1 | from lpython import f32, i32, i64, f64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-cptr_01-4e660f1.json b/tests/reference/asr-cptr_01-4e660f1.json index c554aa6d5b6..f3004809ed9 100644 --- a/tests/reference/asr-cptr_01-4e660f1.json +++ b/tests/reference/asr-cptr_01-4e660f1.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-cptr_01-4e660f1.stderr", - "stderr_hash": "0477f93b29ff4932b3471a59731a173fb19d6e44273236829eeaffbe", + "stderr_hash": "758ccc9ce910f35cb3d0d3cdfc0957518cc69d29c5f6de0880e2a390", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-cptr_01-4e660f1.stderr b/tests/reference/asr-cptr_01-4e660f1.stderr index 510fd3ad0c7..a2720213b68 100644 --- a/tests/reference/asr-cptr_01-4e660f1.stderr +++ b/tests/reference/asr-cptr_01-4e660f1.stderr @@ -1,5 +1,5 @@ -semantic error: Indexing CPtr typed expressions is not supported yet - --> tests/errors/cptr_01.py:5:11 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/cptr_01.py:1:1 | -5 | print(x[0]) - | ^^^^ +1 | from lpython import CPtr, empty_c_void_p + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-doconcurrentloop_01-3fdc189.json b/tests/reference/asr-doconcurrentloop_01-3fdc189.json index 3ae7f67a4ab..6fdb18a568f 100644 --- a/tests/reference/asr-doconcurrentloop_01-3fdc189.json +++ b/tests/reference/asr-doconcurrentloop_01-3fdc189.json @@ -5,9 +5,9 @@ "infile_hash": "2fe3769863a595a01e46a88bf55c944e61a0d141d5c75816ffa74d96", "outfile": null, "outfile_hash": null, - "stdout": "asr-doconcurrentloop_01-3fdc189.stdout", - "stdout_hash": "7bef0ea7d535e46a7982ecac9457928338ed41df3be441edf71da937", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-doconcurrentloop_01-3fdc189.stderr", + "stderr_hash": "ae5a584140fcf2f6058fcbbd58b0236b1647baa004cb381d5eee62d6", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-doconcurrentloop_01-3fdc189.stderr b/tests/reference/asr-doconcurrentloop_01-3fdc189.stderr new file mode 100644 index 00000000000..fa5115169b7 --- /dev/null +++ b/tests/reference/asr-doconcurrentloop_01-3fdc189.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/doconcurrentloop_01.py:1:1 + | +1 | from lpython import f32, i32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-elemental_01-b58df26.json b/tests/reference/asr-elemental_01-b58df26.json index ffc001de63a..a774e2bf2cf 100644 --- a/tests/reference/asr-elemental_01-b58df26.json +++ b/tests/reference/asr-elemental_01-b58df26.json @@ -5,9 +5,9 @@ "infile_hash": "f36f9b2debf675fd8c4ea5264807284664db8f68ae19c0eb27715662", "outfile": null, "outfile_hash": null, - "stdout": "asr-elemental_01-b58df26.stdout", - "stdout_hash": "e5a64941f84cb0ecb9ca2251cce63145b2b2864c1f3483594a1b6901", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-elemental_01-b58df26.stderr", + "stderr_hash": "825c288aa71b6c88b27cebaebe7ddbad50837269db61671cb1fd375f", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-elemental_01-b58df26.stderr b/tests/reference/asr-elemental_01-b58df26.stderr new file mode 100644 index 00000000000..fc27cdaa38a --- /dev/null +++ b/tests/reference/asr-elemental_01-b58df26.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/elemental_01.py:1:1 + | +1 | from lpython import i32, f64, f32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-enum_01-30e1b4a.json b/tests/reference/asr-enum_01-30e1b4a.json index f21587576ec..356552c07d9 100644 --- a/tests/reference/asr-enum_01-30e1b4a.json +++ b/tests/reference/asr-enum_01-30e1b4a.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-enum_01-30e1b4a.stderr", - "stderr_hash": "ee3775d6e144fa8c18d4beeae5a5790e317f7c4d26212100d03f29d4", + "stderr_hash": "e9f3f7d354f4c517857d370e3b1760ac6c3a1ee99e4b05f0d18a1cf4", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-enum_01-30e1b4a.stderr b/tests/reference/asr-enum_01-30e1b4a.stderr index 0947a787eaa..4295e8f5336 100644 --- a/tests/reference/asr-enum_01-30e1b4a.stderr +++ b/tests/reference/asr-enum_01-30e1b4a.stderr @@ -1,9 +1,5 @@ -semantic error: Enumerations with non-integer or non-unique integer values cannot interoperate with C code. - --> tests/errors/enum_01.py:5:1 - 8:19 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/enum_01.py:1:1 | -5 | class Color(Enum): - | ^^^^^^^^^^^^^^^^^^... -... - | -8 | BLUE: f64 = 0.7 - | ...^^^^^^^^^^^^^^^^^^^ +1 | from lpython import f64, ccall + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-enum_02-54656c5.json b/tests/reference/asr-enum_02-54656c5.json index a989cef1769..adff59ed6c0 100644 --- a/tests/reference/asr-enum_02-54656c5.json +++ b/tests/reference/asr-enum_02-54656c5.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-enum_02-54656c5.stderr", - "stderr_hash": "88c95223e82c39f9d40d9f62923d1bffdf3a9f0a47565bad19b37dee", + "stderr_hash": "c2140feaad389cb9be491abd1540eba8dff5b61314d0c0cffdbf5b23", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-enum_02-54656c5.stderr b/tests/reference/asr-enum_02-54656c5.stderr index 39fb6429e6b..8740495e4e0 100644 --- a/tests/reference/asr-enum_02-54656c5.stderr +++ b/tests/reference/asr-enum_02-54656c5.stderr @@ -1,9 +1,5 @@ -semantic error: Enumerations with non-integer or non-unique integer values cannot interoperate with C code. - --> tests/errors/enum_02.py:5:1 - 8:17 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/enum_02.py:1:1 | -5 | class Color(Enum): - | ^^^^^^^^^^^^^^^^^^... -... - | -8 | BLUE: i32 = 2 - | ...^^^^^^^^^^^^^^^^^ +1 | from lpython import i32, ccall + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-expr10-efcbb1b.json b/tests/reference/asr-expr10-efcbb1b.json index 934156a0ea1..564867b9dde 100644 --- a/tests/reference/asr-expr10-efcbb1b.json +++ b/tests/reference/asr-expr10-efcbb1b.json @@ -5,9 +5,9 @@ "infile_hash": "7eb1dd6ad27fcc091e18c4447fb7a56c659565bbdb57f567b68f4a58", "outfile": null, "outfile_hash": null, - "stdout": "asr-expr10-efcbb1b.stdout", - "stdout_hash": "7df6b1473464372fd1ff2c027f3c6c696376735174c418c27605779f", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-expr10-efcbb1b.stderr", + "stderr_hash": "246d273e6f4d4267f78adf50da1f98570a9004eb9078819913bd615b", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-expr10-efcbb1b.stderr b/tests/reference/asr-expr10-efcbb1b.stderr new file mode 100644 index 00000000000..a1fc4214f3e --- /dev/null +++ b/tests/reference/asr-expr10-efcbb1b.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/expr10.py:1:1 + | +1 | from lpython import i32, f32, c32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-expr13-81bdb5a.json b/tests/reference/asr-expr13-81bdb5a.json index 67b767d574c..95197eb88e4 100644 --- a/tests/reference/asr-expr13-81bdb5a.json +++ b/tests/reference/asr-expr13-81bdb5a.json @@ -5,9 +5,9 @@ "infile_hash": "fae72924c71183c45d328b379dfa81aa4971b5e1a9ea668db546078f", "outfile": null, "outfile_hash": null, - "stdout": "asr-expr13-81bdb5a.stdout", - "stdout_hash": "3ec967756ddd76f836e593549f057ada62bda66d8d00c9a1f913e18f", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-expr13-81bdb5a.stderr", + "stderr_hash": "9809471cc22ef6f4a0f2360ace818d4df991994a993035e9728f39ec", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-expr13-81bdb5a.stderr b/tests/reference/asr-expr13-81bdb5a.stderr new file mode 100644 index 00000000000..e3f419e705a --- /dev/null +++ b/tests/reference/asr-expr13-81bdb5a.stderr @@ -0,0 +1,11 @@ +warning: The module 'lpython_builtin' located in $DIR\src\bin/../runtime/lpython_builtin.py cannot be loaded + --> tests/expr13.py:9:9 + | +9 | a = complex(3, 4) == complex(3., 4.) + | ^^^^^^^^^^^^^ imported here + +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> $DIR\src\bin/../runtime/lpython_builtin.py:1:1 + | +1 | from lpython import i8, i16, i32, i64, f32, f64, c32, c64, overload + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-expr7-480ba2f.json b/tests/reference/asr-expr7-480ba2f.json index 037328abc62..6df7f35a096 100644 --- a/tests/reference/asr-expr7-480ba2f.json +++ b/tests/reference/asr-expr7-480ba2f.json @@ -5,9 +5,9 @@ "infile_hash": "7ef1383d1798621ee35adb7296bfe66dcdc08a21ac8dc86b9ce42878", "outfile": null, "outfile_hash": null, - "stdout": "asr-expr7-480ba2f.stdout", - "stdout_hash": "9dc944887243e9b43e647246a134d6940a070187ae954d2fa4bb4121", + "stdout": null, + "stdout_hash": null, "stderr": "asr-expr7-480ba2f.stderr", - "stderr_hash": "6e9790ac88db1a9ead8f64a91ba8a6605de67167037908a74b77be0c", - "returncode": 0 + "stderr_hash": "c67c8600e360cd936ea6cba0344bc707bec2c114bb76e9cf5d6fafcf", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-expr7-480ba2f.stderr b/tests/reference/asr-expr7-480ba2f.stderr index a4fad29beb7..32d74a9b012 100644 --- a/tests/reference/asr-expr7-480ba2f.stderr +++ b/tests/reference/asr-expr7-480ba2f.stderr @@ -1,11 +1,5 @@ -style suggestion: Could have used '**' instead of 'pow' - --> tests/expr7.py:4:13 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/expr7.py:1:1 | -4 | a = i32(pow(2, 2)) - | ^^^^^^^^^ '**' could be used instead - -style suggestion: Could have used '**' instead of 'pow' - --> tests/expr7.py:8:15 - | -8 | res = i32(pow(a, b)) - | ^^^^^^^^^ '**' could be used instead +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-expr8-6beda60.json b/tests/reference/asr-expr8-6beda60.json index aa3a02a59df..f542372b392 100644 --- a/tests/reference/asr-expr8-6beda60.json +++ b/tests/reference/asr-expr8-6beda60.json @@ -5,9 +5,9 @@ "infile_hash": "6966e19cf343700cbc11ec1bf6a495e43c685c6fa065669875aa61ce", "outfile": null, "outfile_hash": null, - "stdout": "asr-expr8-6beda60.stdout", - "stdout_hash": "272c9f7516d80ad11cbc36d824f22f8ebbf255e00268115ac877dbc4", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-expr8-6beda60.stderr", + "stderr_hash": "fa29839d2eb26468f5fd39398d10785b7734ae62730994f5b4be7321", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-expr8-6beda60.stderr b/tests/reference/asr-expr8-6beda60.stderr new file mode 100644 index 00000000000..05041a92945 --- /dev/null +++ b/tests/reference/asr-expr8-6beda60.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/expr8.py:1:1 + | +1 | from lpython import i32, f32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-expr_01-a0d4829.json b/tests/reference/asr-expr_01-a0d4829.json index af3ca441fc2..5133961d644 100644 --- a/tests/reference/asr-expr_01-a0d4829.json +++ b/tests/reference/asr-expr_01-a0d4829.json @@ -5,9 +5,9 @@ "infile_hash": "230a65e2cddb76f58d56747325caf24b8a1f6277810186581948c514", "outfile": null, "outfile_hash": null, - "stdout": "asr-expr_01-a0d4829.stdout", - "stdout_hash": "d9f102677c3f8902ad278211935cdd70f4429e2c26dee8a006592f1c", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-expr_01-a0d4829.stderr", + "stderr_hash": "34b491fafd072f6df88092024ade0b4ddef366c4a5a909936571be9a", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-expr_01-a0d4829.stderr b/tests/reference/asr-expr_01-a0d4829.stderr new file mode 100644 index 00000000000..70a6314c1e5 --- /dev/null +++ b/tests/reference/asr-expr_01-a0d4829.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/expr_01.py:1:1 + | +1 | from lpython import inline, i32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-expr_05-3a37324.json b/tests/reference/asr-expr_05-3a37324.json index ab08532f82e..728453e6411 100644 --- a/tests/reference/asr-expr_05-3a37324.json +++ b/tests/reference/asr-expr_05-3a37324.json @@ -5,9 +5,9 @@ "infile_hash": "618623fd1bf29b81d8f6054f7c2fc67e4cfedfe3ca6002ebe7b1b71b", "outfile": null, "outfile_hash": null, - "stdout": "asr-expr_05-3a37324.stdout", - "stdout_hash": "7dd9033409b2866ca1bf46d9b8b12eaef8c79aa6885e73361443da4f", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-expr_05-3a37324.stderr", + "stderr_hash": "235588dc5c1e17c099ddfb776bf723ee41f831ce829c31121fba3912", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-expr_05-3a37324.stderr b/tests/reference/asr-expr_05-3a37324.stderr new file mode 100644 index 00000000000..f3ab5147177 --- /dev/null +++ b/tests/reference/asr-expr_05-3a37324.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/expr_05.py:1:1 + | +1 | from lpython import i32, i64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-expr_07-7742668.json b/tests/reference/asr-expr_07-7742668.json index 55bdb60c03a..963fd75b350 100644 --- a/tests/reference/asr-expr_07-7742668.json +++ b/tests/reference/asr-expr_07-7742668.json @@ -5,9 +5,9 @@ "infile_hash": "5c3cc1f1662783acd989ceafcb0eb3259e0194dad005c5bd4e502710", "outfile": null, "outfile_hash": null, - "stdout": "asr-expr_07-7742668.stdout", - "stdout_hash": "36af7cdd0a8bed977355197e5fb0512e1b23f1b36966eef5e83ef244", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-expr_07-7742668.stderr", + "stderr_hash": "5812bddfe8d8b8327a6cd761c924c2bf55ef88104c1b48c7c186f8d0", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-expr_07-7742668.stderr b/tests/reference/asr-expr_07-7742668.stderr new file mode 100644 index 00000000000..c675d57a683 --- /dev/null +++ b/tests/reference/asr-expr_07-7742668.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/expr_07.py:1:1 + | +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-expr_09-f3e89c8.json b/tests/reference/asr-expr_09-f3e89c8.json index 0921487cfeb..0d28e8cca2c 100644 --- a/tests/reference/asr-expr_09-f3e89c8.json +++ b/tests/reference/asr-expr_09-f3e89c8.json @@ -5,9 +5,9 @@ "infile_hash": "5786bfd0706e0850ec51d9f6cface5c7df4c30f3b4715f2e76cc553b", "outfile": null, "outfile_hash": null, - "stdout": "asr-expr_09-f3e89c8.stdout", - "stdout_hash": "d52bf7565951e09277b5891789434b29b8d551c64f41199a2a777719", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-expr_09-f3e89c8.stderr", + "stderr_hash": "6802855e29a0c5de5c6f88c441907cf31b4ecbd5b22cefb0f29d6850", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-expr_09-f3e89c8.stderr b/tests/reference/asr-expr_09-f3e89c8.stderr new file mode 100644 index 00000000000..06880b6a48f --- /dev/null +++ b/tests/reference/asr-expr_09-f3e89c8.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/expr_09.py:1:1 + | +1 | from lpython import i32, f64, f32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-expr_10-d39708c.json b/tests/reference/asr-expr_10-d39708c.json index ef470808633..3d22be7fdd5 100644 --- a/tests/reference/asr-expr_10-d39708c.json +++ b/tests/reference/asr-expr_10-d39708c.json @@ -5,9 +5,9 @@ "infile_hash": "a371877a6249c5d8af75ad5afdd4c6f762841733ed517dafcdfd6b10", "outfile": null, "outfile_hash": null, - "stdout": "asr-expr_10-d39708c.stdout", - "stdout_hash": "ea9725c07fb2f5edf6e40f2774bcb37cab724b6ad22371fb64038760", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-expr_10-d39708c.stderr", + "stderr_hash": "3bfa9a1c48bacf3490136fc784e88a64b64357e793947ea6ba86d1fb", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-expr_10-d39708c.stderr b/tests/reference/asr-expr_10-d39708c.stderr new file mode 100644 index 00000000000..8ad28c8a7c7 --- /dev/null +++ b/tests/reference/asr-expr_10-d39708c.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/expr_10.py:1:1 + | +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-expr_12-6769be0.json b/tests/reference/asr-expr_12-6769be0.json index e3d6a595cbe..489c286860c 100644 --- a/tests/reference/asr-expr_12-6769be0.json +++ b/tests/reference/asr-expr_12-6769be0.json @@ -5,9 +5,9 @@ "infile_hash": "00534ea8d2143408735ea96d7a26888e53563758c1b14569daf0f962", "outfile": null, "outfile_hash": null, - "stdout": "asr-expr_12-6769be0.stdout", - "stdout_hash": "06085844f3fc97a4455ab55c19e9abe770ef332e51f07481363e6d2d", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-expr_12-6769be0.stderr", + "stderr_hash": "b3c3c951052ebd236743b86db3bffd13bf5d81874e6b6d912e70b061", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-expr_12-6769be0.stderr b/tests/reference/asr-expr_12-6769be0.stderr new file mode 100644 index 00000000000..5aa14bc8d91 --- /dev/null +++ b/tests/reference/asr-expr_12-6769be0.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/expr_12.py:1:1 + | +1 | from lpython import pointer, i16, Pointer + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-expr_14-f2bd343.json b/tests/reference/asr-expr_14-f2bd343.json index 1402e381385..f47155c726a 100644 --- a/tests/reference/asr-expr_14-f2bd343.json +++ b/tests/reference/asr-expr_14-f2bd343.json @@ -5,9 +5,9 @@ "infile_hash": "bf5d0d167082af64149be967dc182b9e2e8cb35091fa410ae4afee6f", "outfile": null, "outfile_hash": null, - "stdout": "asr-expr_14-f2bd343.stdout", - "stdout_hash": "4ada21de65a857bae07b81e5da86c8849973ff12804fd23aa2fabd83", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-expr_14-f2bd343.stderr", + "stderr_hash": "97beacf456c5ed565fec4fb1c30f30785a28d9dfb30bed40358d99b6", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-expr_14-f2bd343.stderr b/tests/reference/asr-expr_14-f2bd343.stderr new file mode 100644 index 00000000000..8b442da3be1 --- /dev/null +++ b/tests/reference/asr-expr_14-f2bd343.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/expr_14.py:1:1 + | +1 | from lpython import i32, i64, f32, f64, c32, c64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-func_01-d87aa4a.json b/tests/reference/asr-func_01-d87aa4a.json index 2ac3164ce43..4e4af25a927 100644 --- a/tests/reference/asr-func_01-d87aa4a.json +++ b/tests/reference/asr-func_01-d87aa4a.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-func_01-d87aa4a.stderr", - "stderr_hash": "2a773033fab41aadd3ddf3732cfb473ba5da6c9649453516286dacf1", + "stderr_hash": "02296e62d3aafbd23a80dce1ccbf8f1d4577e924669e8d5b5b9344d2", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-func_01-d87aa4a.stderr b/tests/reference/asr-func_01-d87aa4a.stderr index 3963b1e1d51..42bb480ac19 100644 --- a/tests/reference/asr-func_01-d87aa4a.stderr +++ b/tests/reference/asr-func_01-d87aa4a.stderr @@ -1,9 +1,5 @@ -semantic error: Function f is already defined - --> tests/errors/func_01.py:9:1 - 10:16 - | - 9 | def f(i: i32): - | ^^^^^^^^^^^^^^... -... - | -10 | print(i + 2) - | ...^^^^^^^^^^^^^^^^ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/func_01.py:1:1 + | +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-func_inline_01-56af272.json b/tests/reference/asr-func_inline_01-56af272.json index 962a5719187..15b3800d3e5 100644 --- a/tests/reference/asr-func_inline_01-56af272.json +++ b/tests/reference/asr-func_inline_01-56af272.json @@ -5,9 +5,9 @@ "infile_hash": "65a2e9a9bc7ad68a5e104549eed00cafd02b643a1d91ab2e175b2198", "outfile": null, "outfile_hash": null, - "stdout": "asr-func_inline_01-56af272.stdout", - "stdout_hash": "61a318ad3d478103dacb33a1afb570d87b27dca089ff3d689781b0db", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-func_inline_01-56af272.stderr", + "stderr_hash": "b01ffc0bec4f1fde85450e4652ee7ba31a79682f27900fee8efcf807", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-func_inline_01-56af272.stderr b/tests/reference/asr-func_inline_01-56af272.stderr new file mode 100644 index 00000000000..ba99cb3ed57 --- /dev/null +++ b/tests/reference/asr-func_inline_01-56af272.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/func_inline_01.py:1:1 + | +1 | from lpython import i64 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-generics_01-d616074.json b/tests/reference/asr-generics_01-d616074.json index 6f6aee9ea3d..ce4feef6b91 100644 --- a/tests/reference/asr-generics_01-d616074.json +++ b/tests/reference/asr-generics_01-d616074.json @@ -5,9 +5,9 @@ "infile_hash": "3062320cca6688cea4b76b4c18dbaf5d1dcc1de193459ee598e84935", "outfile": null, "outfile_hash": null, - "stdout": "asr-generics_01-d616074.stdout", - "stdout_hash": "57cef657583fb292fdf5b3106a5648f2cd530ab2c8252e9d6aeca848", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-generics_01-d616074.stderr", + "stderr_hash": "c7321c88d4f243b1e45f2099a30e547c08ebe9095e28b64f2ae7b5bb", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-generics_01-d616074.stderr b/tests/reference/asr-generics_01-d616074.stderr new file mode 100644 index 00000000000..44126ea55bd --- /dev/null +++ b/tests/reference/asr-generics_01-d616074.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/generics_01.py:1:1 + | +1 | from lpython import TypeVar, restriction, i32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-generics_02-e2ea5c9.json b/tests/reference/asr-generics_02-e2ea5c9.json index 4cc9796e323..8dec21639c1 100644 --- a/tests/reference/asr-generics_02-e2ea5c9.json +++ b/tests/reference/asr-generics_02-e2ea5c9.json @@ -5,9 +5,9 @@ "infile_hash": "1103ff0edcb14e988eaa30252064dd77c7012884226c63f35f7aab01", "outfile": null, "outfile_hash": null, - "stdout": "asr-generics_02-e2ea5c9.stdout", - "stdout_hash": "19ff44312b519ad4c3d21b1467bed50f5da422af9687750ee462cd39", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-generics_02-e2ea5c9.stderr", + "stderr_hash": "fb41558b3624cea23e5a62feb679ca600fc2a7bae243523f672df1e1", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-generics_02-e2ea5c9.stderr b/tests/reference/asr-generics_02-e2ea5c9.stderr new file mode 100644 index 00000000000..90c27251e33 --- /dev/null +++ b/tests/reference/asr-generics_02-e2ea5c9.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/generics_02.py:1:1 + | +1 | from lpython import TypeVar + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-generics_array_01-682b1b2.json b/tests/reference/asr-generics_array_01-682b1b2.json index 9f9c207063d..ed6164f5763 100644 --- a/tests/reference/asr-generics_array_01-682b1b2.json +++ b/tests/reference/asr-generics_array_01-682b1b2.json @@ -5,9 +5,9 @@ "infile_hash": "c6df2de74d7c7d6c34034bba81ec72f26fb3fbab9f6651f0caced593", "outfile": null, "outfile_hash": null, - "stdout": "asr-generics_array_01-682b1b2.stdout", - "stdout_hash": "9aa83809ba106e1940c77116da1771909d887743972d7dfbc016cc10", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-generics_array_01-682b1b2.stderr", + "stderr_hash": "f474b1f693d135e435690d16f6487d2c4ceb42c4d55576d2f48065a9", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-generics_array_01-682b1b2.stderr b/tests/reference/asr-generics_array_01-682b1b2.stderr new file mode 100644 index 00000000000..2991d53b4b4 --- /dev/null +++ b/tests/reference/asr-generics_array_01-682b1b2.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/generics_array_01.py:1:1 + | +1 | from lpython import TypeVar, i32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-generics_array_02-22c8dc1.json b/tests/reference/asr-generics_array_02-22c8dc1.json index 4299ed37af0..1675166c1d3 100644 --- a/tests/reference/asr-generics_array_02-22c8dc1.json +++ b/tests/reference/asr-generics_array_02-22c8dc1.json @@ -5,9 +5,9 @@ "infile_hash": "573a1e2d702f2a144956a57e367291c359b68f385b9163131a95334a", "outfile": null, "outfile_hash": null, - "stdout": "asr-generics_array_02-22c8dc1.stdout", - "stdout_hash": "27d9a539a385618dc4f724fa8969aea0ee12775f84376d1fccf5d17e", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-generics_array_02-22c8dc1.stderr", + "stderr_hash": "e45c62174d82fdcc38d8f035e363f5c7c3dda899927d43a473c8b3b9", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-generics_array_02-22c8dc1.stderr b/tests/reference/asr-generics_array_02-22c8dc1.stderr new file mode 100644 index 00000000000..c63cca34d50 --- /dev/null +++ b/tests/reference/asr-generics_array_02-22c8dc1.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/generics_array_02.py:1:1 + | +1 | from lpython import TypeVar, restriction, i32, f32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-generics_array_03-fb3706c.json b/tests/reference/asr-generics_array_03-fb3706c.json index 046eb84c61b..df2dcc1b09d 100644 --- a/tests/reference/asr-generics_array_03-fb3706c.json +++ b/tests/reference/asr-generics_array_03-fb3706c.json @@ -5,9 +5,9 @@ "infile_hash": "61d9cb73bacec6dfec919e6d25a549e749e1e73d895b0b48d6cdcaaf", "outfile": null, "outfile_hash": null, - "stdout": "asr-generics_array_03-fb3706c.stdout", - "stdout_hash": "3488f060ea913f3051d04ec99e6ea0a4b0c7ac62c3a54f39ae1e30c7", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-generics_array_03-fb3706c.stderr", + "stderr_hash": "bfff02f1d2305308467881f040815e2abcef920a8c7c5c2d68c90085", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-generics_array_03-fb3706c.stderr b/tests/reference/asr-generics_array_03-fb3706c.stderr new file mode 100644 index 00000000000..58d6693c30b --- /dev/null +++ b/tests/reference/asr-generics_array_03-fb3706c.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/generics_array_03.py:1:1 + | +1 | from lpython import TypeVar, restriction, i32, f32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-generics_error_01-1e05cd6.json b/tests/reference/asr-generics_error_01-1e05cd6.json index 80dcd03351e..55d59b8f148 100644 --- a/tests/reference/asr-generics_error_01-1e05cd6.json +++ b/tests/reference/asr-generics_error_01-1e05cd6.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-generics_error_01-1e05cd6.stderr", - "stderr_hash": "45a4d8fba734f967b36ed69d703fe503111c67dc6c8887013477c791", + "stderr_hash": "27f1930a1d01e590221c20222f333392dbf9e1b5e20dbaeb789628cc", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-generics_error_01-1e05cd6.stderr b/tests/reference/asr-generics_error_01-1e05cd6.stderr index 9d7abb86ef6..f8da641ed79 100644 --- a/tests/reference/asr-generics_error_01-1e05cd6.stderr +++ b/tests/reference/asr-generics_error_01-1e05cd6.stderr @@ -1,5 +1,5 @@ -semantic error: Inconsistent type variable for the function call - --> tests/errors/generics_error_01.py:12:7 - | -12 | print(f(1,"a")) - | ^^^^^^^^ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/generics_error_01.py:1:1 + | +1 | from lpython import TypeVar + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-generics_error_02-d614928.json b/tests/reference/asr-generics_error_02-d614928.json index 950f37b4350..aebe59aeeb0 100644 --- a/tests/reference/asr-generics_error_02-d614928.json +++ b/tests/reference/asr-generics_error_02-d614928.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-generics_error_02-d614928.stderr", - "stderr_hash": "2b82c797067dc1c722d416f8f13d837cfec47a0d4adb11c64f5b7e02", + "stderr_hash": "57b3d4c548a4db4ef20b15d0a645c39ed5d70d52351d11a224aa7eab", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-generics_error_02-d614928.stderr b/tests/reference/asr-generics_error_02-d614928.stderr index 22668c4d18a..a283a60cf7a 100644 --- a/tests/reference/asr-generics_error_02-d614928.stderr +++ b/tests/reference/asr-generics_error_02-d614928.stderr @@ -1,5 +1,5 @@ -semantic error: No applicable argument to the restriction zero - --> tests/errors/generics_error_02.py:37:7 - | -37 | print(mean(["a","b","c"], add=add_string, div=div_string)) - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/generics_error_02.py:1:1 + | +1 | from lpython import TypeVar, f64, i32, restriction + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-generics_error_03-208d10d.json b/tests/reference/asr-generics_error_03-208d10d.json index a5e6b0f0075..57e663bc2e7 100644 --- a/tests/reference/asr-generics_error_03-208d10d.json +++ b/tests/reference/asr-generics_error_03-208d10d.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-generics_error_03-208d10d.stderr", - "stderr_hash": "e4803340775b153d9eafeae36cff39a9469260a0e139f0fc41e9317d", + "stderr_hash": "2e628d96ff421f8fbf09cfcd3dc3441a5806ee3fae6973bfa8a05d8a", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-generics_error_03-208d10d.stderr b/tests/reference/asr-generics_error_03-208d10d.stderr index ef155d1bb4b..96513f2b5d4 100644 --- a/tests/reference/asr-generics_error_03-208d10d.stderr +++ b/tests/reference/asr-generics_error_03-208d10d.stderr @@ -1,9 +1,5 @@ -semantic error: Restriction mismatch with provided arguments - --> tests/errors/generics_error_03.py:20:1 - 21:16 - | -20 | def add_string(x: i32, y: i32) -> i32: - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... -... - | -21 | return x + y - | ...^^^^^^^^^^^^^^^^ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/generics_error_03.py:1:1 + | +1 | from lpython import TypeVar, f64, i32, restriction + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-generics_list_01-39c4044.json b/tests/reference/asr-generics_list_01-39c4044.json index 7b72408ce86..86f103ee179 100644 --- a/tests/reference/asr-generics_list_01-39c4044.json +++ b/tests/reference/asr-generics_list_01-39c4044.json @@ -5,9 +5,9 @@ "infile_hash": "d5101f5832d47b86a95540b87deb0b36092004160b41af2a6ffb5ee0", "outfile": null, "outfile_hash": null, - "stdout": "asr-generics_list_01-39c4044.stdout", - "stdout_hash": "28c08d7407ad7bbc930a92a1357deaf3f110fa6c7e2796325b945daf", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-generics_list_01-39c4044.stderr", + "stderr_hash": "e26fc955719a30d26f6f03f317f6c01b6b0566fb0b89d9db2775f1bf", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-generics_list_01-39c4044.stderr b/tests/reference/asr-generics_list_01-39c4044.stderr new file mode 100644 index 00000000000..5d9c37732b6 --- /dev/null +++ b/tests/reference/asr-generics_list_01-39c4044.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/generics_list_01.py:1:1 + | +1 | from lpython import TypeVar, f64, i32, restriction + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-global_syms_01-273906f.json b/tests/reference/asr-global_syms_01-273906f.json index 79bc868f58b..a2b76ba3229 100644 --- a/tests/reference/asr-global_syms_01-273906f.json +++ b/tests/reference/asr-global_syms_01-273906f.json @@ -5,9 +5,9 @@ "infile_hash": "a561c85e452a7be71b45f7b5277fd3ab7ff79fcc596f059f00c9dd45", "outfile": null, "outfile_hash": null, - "stdout": "asr-global_syms_01-273906f.stdout", - "stdout_hash": "e2fa0c80bca6d74e99d728feaa144c9b640967a65262f68eb196aac8", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-global_syms_01-273906f.stderr", + "stderr_hash": "f8c7de3346be44bc14092616e1d15d0f92fd866323707b75634cec41", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-global_syms_01-273906f.stderr b/tests/reference/asr-global_syms_01-273906f.stderr new file mode 100644 index 00000000000..71d63be3269 --- /dev/null +++ b/tests/reference/asr-global_syms_01-273906f.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/global_syms_01.py:1:1 + | +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-kwargs_01_error-ab9530d.json b/tests/reference/asr-kwargs_01_error-ab9530d.json index 6f05aa772da..4e82e5b38fa 100644 --- a/tests/reference/asr-kwargs_01_error-ab9530d.json +++ b/tests/reference/asr-kwargs_01_error-ab9530d.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-kwargs_01_error-ab9530d.stderr", - "stderr_hash": "9acb6dea7d63917291858cf2cac49e5270e11ea1dd547f66303224c1", + "stderr_hash": "c868fe240803d5addfe63f1dabe474e05eff418ca1ecdc77b8433992", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-kwargs_01_error-ab9530d.stderr b/tests/reference/asr-kwargs_01_error-ab9530d.stderr index dbdf5c98ebd..9c6da10e3db 100644 --- a/tests/reference/asr-kwargs_01_error-ab9530d.stderr +++ b/tests/reference/asr-kwargs_01_error-ab9530d.stderr @@ -1,5 +1,5 @@ -semantic error: func01() got multiple values for argument 'a' - --> tests/errors/kwargs_01_error.py:11:5 - | -11 | func01(arg1, a=int(8)) - | ^^^^^^^^^^^^^^^^^^^^^^ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/kwargs_01_error.py:1:1 + | +1 | from lpython import i32, i64, f32, f64, c64, overload + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-kwargs_02_error-7c91f8f.json b/tests/reference/asr-kwargs_02_error-7c91f8f.json index 228d941171b..86ef1bfedbe 100644 --- a/tests/reference/asr-kwargs_02_error-7c91f8f.json +++ b/tests/reference/asr-kwargs_02_error-7c91f8f.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-kwargs_02_error-7c91f8f.stderr", - "stderr_hash": "120e6e6838e464af15ff96aa99dcdda21923a3bb5f0c3d6d7cc8348b", + "stderr_hash": "69a6753b73188ffdfe47fc24536d3e209415f27fe0785b8fb90d2bf4", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-kwargs_02_error-7c91f8f.stderr b/tests/reference/asr-kwargs_02_error-7c91f8f.stderr index 9e13b4f43d6..e0962c2d986 100644 --- a/tests/reference/asr-kwargs_02_error-7c91f8f.stderr +++ b/tests/reference/asr-kwargs_02_error-7c91f8f.stderr @@ -1,5 +1,5 @@ -semantic error: func02() got multiple values for argument 'b' - --> tests/errors/kwargs_02_error.py:13:5 - | -13 | func02(arg3, arg4, c=arg5, b=arg4) - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/kwargs_02_error.py:1:1 + | +1 | from lpython import f32, f64, c64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-kwargs_03_error-a68cc46.json b/tests/reference/asr-kwargs_03_error-a68cc46.json index 2b3ac444fac..593ae716604 100644 --- a/tests/reference/asr-kwargs_03_error-a68cc46.json +++ b/tests/reference/asr-kwargs_03_error-a68cc46.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-kwargs_03_error-a68cc46.stderr", - "stderr_hash": "83b858c0d4e17fe2f03b1e47652414c4478d709def5d3fbaa71aad71", + "stderr_hash": "9d5a1a469a82db039691f13d0a2b4569378f285bbde7375303a6e40d", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-kwargs_03_error-a68cc46.stderr b/tests/reference/asr-kwargs_03_error-a68cc46.stderr index 1a811894e01..c6d4675f74a 100644 --- a/tests/reference/asr-kwargs_03_error-a68cc46.stderr +++ b/tests/reference/asr-kwargs_03_error-a68cc46.stderr @@ -1,5 +1,5 @@ -semantic error: Function func01 doesn't have an argument named 'd' - --> tests/errors/kwargs_03_error.py:11:5 - | -11 | func01(arg1, d=int(8)) - | ^^^^^^^^^^^^^^^^^^^^^^ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/kwargs_03_error.py:1:1 + | +1 | from lpython import i32, i64, f32, f64, c64, overload + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-loop1-10d3109.json b/tests/reference/asr-loop1-10d3109.json index 6ade4d4a307..fd9316d8cb0 100644 --- a/tests/reference/asr-loop1-10d3109.json +++ b/tests/reference/asr-loop1-10d3109.json @@ -5,9 +5,9 @@ "infile_hash": "324b018f29f7dffbd326e77b7ff9b6a9286837d573ed28f9d86e0311", "outfile": null, "outfile_hash": null, - "stdout": "asr-loop1-10d3109.stdout", - "stdout_hash": "d70ea45193d1b52f5a725f38c1c991f4878a353e4ed3d405b3bd6cad", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-loop1-10d3109.stderr", + "stderr_hash": "9ee33f8803ca783ebf8774e39cc13ae2d20c69d1d0afdba015139024", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-loop1-10d3109.stderr b/tests/reference/asr-loop1-10d3109.stderr new file mode 100644 index 00000000000..aac63617f7c --- /dev/null +++ b/tests/reference/asr-loop1-10d3109.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/loop1.py:1:1 + | +1 | from lpython import i32, i64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-loop2-e874469.json b/tests/reference/asr-loop2-e874469.json index 18ca53c7758..9145a4528c0 100644 --- a/tests/reference/asr-loop2-e874469.json +++ b/tests/reference/asr-loop2-e874469.json @@ -5,9 +5,9 @@ "infile_hash": "7946c522ceb16f99810780d4aba7fa2593695a4b49fb35ea1f131f53", "outfile": null, "outfile_hash": null, - "stdout": "asr-loop2-e874469.stdout", - "stdout_hash": "12094ff8dcfe9de311e1570404c08587447743408efba508fa37ce57", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-loop2-e874469.stderr", + "stderr_hash": "10b4e577b95a49a098472b89e17483c208f5b5fca5eb7c5d4102d3cc", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-loop2-e874469.stderr b/tests/reference/asr-loop2-e874469.stderr new file mode 100644 index 00000000000..460b66d9d3c --- /dev/null +++ b/tests/reference/asr-loop2-e874469.stderr @@ -0,0 +1,11 @@ +warning: The module 'sys' located in $DIR\src\bin/../runtime/sys.py cannot be loaded + --> tests/loop2.py:1:1 + | +1 | from sys import exit + | ^^^^^^^^^^^^^^^^^^^^ imported here + +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> $DIR\src\bin/../runtime/sys.py:1:1 + | +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-loop_01-e7aa06a.json b/tests/reference/asr-loop_01-e7aa06a.json index 943ce68e649..8ef34801f7c 100644 --- a/tests/reference/asr-loop_01-e7aa06a.json +++ b/tests/reference/asr-loop_01-e7aa06a.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-loop_01-e7aa06a.stderr", - "stderr_hash": "256fe74af3480ca97b87c1b6f770cee10753e5f097d5a2d79135e736", + "stderr_hash": "62b87dbc319f020a245e43b3ed06ad8a109868139b1c8579a0fff6d9", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-loop_01-e7aa06a.stderr b/tests/reference/asr-loop_01-e7aa06a.stderr index 1b50246d4cd..c8794776e95 100644 --- a/tests/reference/asr-loop_01-e7aa06a.stderr +++ b/tests/reference/asr-loop_01-e7aa06a.stderr @@ -1,5 +1,5 @@ -semantic error: Type mismatch in loop start and loop end values, the types must be compatible - --> tests/errors/loop_01.py:5:20 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/loop_01.py:1:1 | -5 | for i in range(15, i16(-1), i16(-1)): - | ^^ ^^^^^^^ type mismatch ('i32' and 'i16') +1 | from lpython import i16 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-loop_02-5741651.json b/tests/reference/asr-loop_02-5741651.json index 236ad8ba7a7..95a7f6ec8b8 100644 --- a/tests/reference/asr-loop_02-5741651.json +++ b/tests/reference/asr-loop_02-5741651.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-loop_02-5741651.stderr", - "stderr_hash": "a8262496250102a77a9e5718d40aaf1067fb21a18fb047885aa643ac", + "stderr_hash": "cd7e8a50a7ebfcb3d8417d25390c1813a6f98bf8fe4199966d4c07aa", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-loop_02-5741651.stderr b/tests/reference/asr-loop_02-5741651.stderr index c9198f2d378..ca887e31e53 100644 --- a/tests/reference/asr-loop_02-5741651.stderr +++ b/tests/reference/asr-loop_02-5741651.stderr @@ -1,5 +1,5 @@ -semantic error: Type mismatch in loop start and increment values, the types must be compatible - --> tests/errors/loop_02.py:5:20 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/loop_02.py:1:1 | -5 | for i in range(i16(15), i16(-1), -1): - | ^^^^^^^ ^^ type mismatch ('i16' and 'i32') +1 | from lpython import i16 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-print_02-afbe092.json b/tests/reference/asr-print_02-afbe092.json index b5a2d9ea841..16645f47d9d 100644 --- a/tests/reference/asr-print_02-afbe092.json +++ b/tests/reference/asr-print_02-afbe092.json @@ -5,9 +5,9 @@ "infile_hash": "c4513f1b2ab1a2f33a0784fe80b4d32b506c05799b0c920c4f5b0411", "outfile": null, "outfile_hash": null, - "stdout": "asr-print_02-afbe092.stdout", - "stdout_hash": "e330e074ffe6c355b9a1307b63179fb4393f2e08920f5031d6ecf6b0", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-print_02-afbe092.stderr", + "stderr_hash": "471060b489b81a2095d6b4ced676c2644b1bf98adf32f00b8081b9bb", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-print_02-afbe092.stderr b/tests/reference/asr-print_02-afbe092.stderr new file mode 100644 index 00000000000..e8f59b7faf5 --- /dev/null +++ b/tests/reference/asr-print_02-afbe092.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/print_02.py:1:1 + | +1 | from lpython import i32, f64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-structs_01-0893e35.json b/tests/reference/asr-structs_01-0893e35.json index b415cd4e5b1..0573ff305e3 100644 --- a/tests/reference/asr-structs_01-0893e35.json +++ b/tests/reference/asr-structs_01-0893e35.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-structs_01-0893e35.stderr", - "stderr_hash": "6f58b337cbc9cb1832e2ecba47fdad4b64e4484b913e29f61c64dbea", + "stderr_hash": "80d6c32a222d01a51df191ef79d5b2d65a26b820dcdfc9bac288612a", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-structs_01-0893e35.stderr b/tests/reference/asr-structs_01-0893e35.stderr index 12892d04eb4..5cbeaa8ab56 100644 --- a/tests/reference/asr-structs_01-0893e35.stderr +++ b/tests/reference/asr-structs_01-0893e35.stderr @@ -1,5 +1,5 @@ -semantic error: Alignment 5 is not a positive power of 2. - --> tests/errors/structs_01.py:3:17 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/structs_01.py:1:1 | -3 | @packed(aligned=5) - | ^ +1 | from lpython import i32, i8, packed, dataclass + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-structs_01-be14d49.json b/tests/reference/asr-structs_01-be14d49.json index c2ee124e976..72b956652ad 100644 --- a/tests/reference/asr-structs_01-be14d49.json +++ b/tests/reference/asr-structs_01-be14d49.json @@ -5,9 +5,9 @@ "infile_hash": "a17eed6995c1af36b3968cb80367bda33fb855a60793b6bdc770aad2", "outfile": null, "outfile_hash": null, - "stdout": "asr-structs_01-be14d49.stdout", - "stdout_hash": "7fc590bac6faf35bb632814509f73079edbd4c868b32dcfcf5efe3f2", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-structs_01-be14d49.stderr", + "stderr_hash": "3ef389b49fd95c4388d5066e46e8a9be91e6212e971691b6d73b1344", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-structs_01-be14d49.stderr b/tests/reference/asr-structs_01-be14d49.stderr new file mode 100644 index 00000000000..2e716a79bcc --- /dev/null +++ b/tests/reference/asr-structs_01-be14d49.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/structs_01.py:1:1 + | +1 | from lpython import i32, f32, f64, dataclass + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-structs_02-2ab459a.json b/tests/reference/asr-structs_02-2ab459a.json index 959915cf47b..3aa6a63c5b9 100644 --- a/tests/reference/asr-structs_02-2ab459a.json +++ b/tests/reference/asr-structs_02-2ab459a.json @@ -5,9 +5,9 @@ "infile_hash": "f101938e4f5608477de4e57be8f04196e51b97aab3ade62833cecf91", "outfile": null, "outfile_hash": null, - "stdout": "asr-structs_02-2ab459a.stdout", - "stdout_hash": "307f33ebe205c2db704979606cd08768c0ca349d55166e81ab8b5b61", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-structs_02-2ab459a.stderr", + "stderr_hash": "f96bab3b81e23553625c1b9e23d2ce3758458ee49661dc9f6dc0be32", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-structs_02-2ab459a.stderr b/tests/reference/asr-structs_02-2ab459a.stderr new file mode 100644 index 00000000000..c8a1e8484bf --- /dev/null +++ b/tests/reference/asr-structs_02-2ab459a.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/structs_02.py:1:1 + | +1 | from lpython import i32, f32, dataclass, CPtr, Pointer, c_p_pointer, pointer, ccallable, empty_c_void_p, f64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-structs_03-0cef911.json b/tests/reference/asr-structs_03-0cef911.json index d66b5a77a1b..c3bfefde14d 100644 --- a/tests/reference/asr-structs_03-0cef911.json +++ b/tests/reference/asr-structs_03-0cef911.json @@ -5,9 +5,9 @@ "infile_hash": "dbd0eac675f958a27a7a4e4a7de3b04402073ecd2d483df75f51eb80", "outfile": null, "outfile_hash": null, - "stdout": "asr-structs_03-0cef911.stdout", - "stdout_hash": "18ac59879acbbcbf1cd7180817cd17e88e09946a462e7226a9d865d6", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-structs_03-0cef911.stderr", + "stderr_hash": "dd1ddf86d59567612b90c4d93f3c33a7b1f7f7e609a552c4c80eb80a", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-structs_03-0cef911.stderr b/tests/reference/asr-structs_03-0cef911.stderr new file mode 100644 index 00000000000..6a9198c2779 --- /dev/null +++ b/tests/reference/asr-structs_03-0cef911.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/structs_03.py:1:1 + | +1 | from lpython import i32, f32, f64, dataclass, Pointer, pointer + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-structs_04-387747b.json b/tests/reference/asr-structs_04-387747b.json index eb93021063a..8f8ed4b6945 100644 --- a/tests/reference/asr-structs_04-387747b.json +++ b/tests/reference/asr-structs_04-387747b.json @@ -5,9 +5,9 @@ "infile_hash": "b57d1dd265f7a7906398ff70e0d5713433a7c3354590d727b3e6306d", "outfile": null, "outfile_hash": null, - "stdout": "asr-structs_04-387747b.stdout", - "stdout_hash": "fe42ef6eccb8a49bb420bfef442da81febf0ce1effb954772be70b3b", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-structs_04-387747b.stderr", + "stderr_hash": "7d4fd03d89cf477f1b11de00a5c9f94fb6c9b1da89cee3e3cfe2bfa9", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-structs_04-387747b.stderr b/tests/reference/asr-structs_04-387747b.stderr new file mode 100644 index 00000000000..5693bb64c74 --- /dev/null +++ b/tests/reference/asr-structs_04-387747b.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/structs_04.py:1:1 + | +1 | from lpython import i32, f32, f64, dataclass + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-structs_05-fa98307.json b/tests/reference/asr-structs_05-fa98307.json index 1e6078f275d..0ab65334e63 100644 --- a/tests/reference/asr-structs_05-fa98307.json +++ b/tests/reference/asr-structs_05-fa98307.json @@ -5,9 +5,9 @@ "infile_hash": "5c9d6218394744f26160b09fb545064c82ef9172e10b474d6be5fca2", "outfile": null, "outfile_hash": null, - "stdout": "asr-structs_05-fa98307.stdout", - "stdout_hash": "69610b3f139c52d0f86667d8e10cf36b002386136e90c8d86705edb9", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-structs_05-fa98307.stderr", + "stderr_hash": "52e8947ee298d5c8de11e280f5440f15bff83934963e727ae70b9fcb", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-structs_05-fa98307.stderr b/tests/reference/asr-structs_05-fa98307.stderr new file mode 100644 index 00000000000..49061b08101 --- /dev/null +++ b/tests/reference/asr-structs_05-fa98307.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/structs_05.py:1:1 + | +1 | from lpython import i32, f64, i64, i16, i8, f32, dataclass + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_annassign_type_mismatch-7dac7be.json b/tests/reference/asr-test_annassign_type_mismatch-7dac7be.json index 76dc427cbbc..9bf802d0993 100644 --- a/tests/reference/asr-test_annassign_type_mismatch-7dac7be.json +++ b/tests/reference/asr-test_annassign_type_mismatch-7dac7be.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_annassign_type_mismatch-7dac7be.stderr", - "stderr_hash": "a794ce35be79f7fcbb0889e04091555055f3c1c537bcf14840d33e60", + "stderr_hash": "300de8a9f6bff37728cd4d0d5207689fd6cbc38ae705e5707b10bb2f", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_annassign_type_mismatch-7dac7be.stderr b/tests/reference/asr-test_annassign_type_mismatch-7dac7be.stderr index 895ff95d9d9..7386d587795 100644 --- a/tests/reference/asr-test_annassign_type_mismatch-7dac7be.stderr +++ b/tests/reference/asr-test_annassign_type_mismatch-7dac7be.stderr @@ -1,5 +1,5 @@ -semantic error: Type mismatch in annotation-assignment, the types must be compatible - --> tests/errors/test_annassign_type_mismatch.py:4:5 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_annassign_type_mismatch.py:1:1 | -4 | x: i32[4] = [1, 2, 3, 4] - | ^ ^^^^^^^^^^^^ type mismatch ('i32[5]' and 'list[i32]') +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_annassign_type_mismatch2-fc883f7.json b/tests/reference/asr-test_annassign_type_mismatch2-fc883f7.json index c12f4b6535d..76d0765cf2d 100644 --- a/tests/reference/asr-test_annassign_type_mismatch2-fc883f7.json +++ b/tests/reference/asr-test_annassign_type_mismatch2-fc883f7.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_annassign_type_mismatch2-fc883f7.stderr", - "stderr_hash": "3c2bbba713689c37ed22127cdd7a37ab6b1bce03d01380803884849d", + "stderr_hash": "0770d4be45155543f22f0fc20064b76365345d280820ec99a9e5e576", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_annassign_type_mismatch2-fc883f7.stderr b/tests/reference/asr-test_annassign_type_mismatch2-fc883f7.stderr index 9cc02d675fb..13e776de53b 100644 --- a/tests/reference/asr-test_annassign_type_mismatch2-fc883f7.stderr +++ b/tests/reference/asr-test_annassign_type_mismatch2-fc883f7.stderr @@ -1,5 +1,5 @@ -semantic error: Type mismatch in annotation-assignment, the types must be compatible - --> tests/errors/test_annassign_type_mismatch2.py:4:5 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_annassign_type_mismatch2.py:1:1 | -4 | x: f64[5] = [1.0, 2.0, 3.0, 4.0, 5.0] - | ^ ^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('f64[6]' and 'list[f64]') +1 | from lpython import f64 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_append_type_mismatch-030e9c7.json b/tests/reference/asr-test_append_type_mismatch-030e9c7.json index e2edd78183a..6e80d2e938d 100644 --- a/tests/reference/asr-test_append_type_mismatch-030e9c7.json +++ b/tests/reference/asr-test_append_type_mismatch-030e9c7.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_append_type_mismatch-030e9c7.stderr", - "stderr_hash": "6610c87a3c164e9cc8884eaf66397658c311199814689ebd4793c92a", + "stderr_hash": "5b165756bcac5f11cfd06bd2790b705f9cd4903741aad059eee8229f", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_append_type_mismatch-030e9c7.stderr b/tests/reference/asr-test_append_type_mismatch-030e9c7.stderr index a860db8a46e..04d89bf45c3 100644 --- a/tests/reference/asr-test_append_type_mismatch-030e9c7.stderr +++ b/tests/reference/asr-test_append_type_mismatch-030e9c7.stderr @@ -1,5 +1,5 @@ -semantic error: Type mismatch in 'append', the types must be compatible - --> tests/errors/test_append_type_mismatch.py:6:14 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_append_type_mismatch.py:1:1 | -6 | l.append('a') - | ^^^ type mismatch (found: 'str', expected: 'i32') +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_assign4-a2136e0.json b/tests/reference/asr-test_assign4-a2136e0.json index e09dfa9249d..3f05c0af341 100644 --- a/tests/reference/asr-test_assign4-a2136e0.json +++ b/tests/reference/asr-test_assign4-a2136e0.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_assign4-a2136e0.stderr", - "stderr_hash": "a871819fb4bd2139f16a7407208ea210276e5b12c9f13ae442132483", + "stderr_hash": "54229e7dd44962c14aa9dd9fed82a25845c97511d8a877999afc49aa", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_assign4-a2136e0.stderr b/tests/reference/asr-test_assign4-a2136e0.stderr index 43d32d2933a..b3ccadb8aac 100644 --- a/tests/reference/asr-test_assign4-a2136e0.stderr +++ b/tests/reference/asr-test_assign4-a2136e0.stderr @@ -1,5 +1,5 @@ -semantic error: Assigning integer to float is not supported - --> tests/errors/test_assign4.py:7:9 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_assign4.py:1:1 | -7 | f = x - | ^ +1 | from lpython import i32, f64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_assign8-4b26e63.json b/tests/reference/asr-test_assign8-4b26e63.json index fb449632d97..3271c2f32da 100644 --- a/tests/reference/asr-test_assign8-4b26e63.json +++ b/tests/reference/asr-test_assign8-4b26e63.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_assign8-4b26e63.stderr", - "stderr_hash": "c8ad8a6c89a23c0e2bd0cbaf7c9568625f093e526ff8ff26ae300e07", + "stderr_hash": "1b09f1dfde467eb5e7fa2e6212bcdc70cd132013b1d0523c546a37e5", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_assign8-4b26e63.stderr b/tests/reference/asr-test_assign8-4b26e63.stderr index dcb47d9356f..fbbc1332068 100644 --- a/tests/reference/asr-test_assign8-4b26e63.stderr +++ b/tests/reference/asr-test_assign8-4b26e63.stderr @@ -1,5 +1,5 @@ -semantic error: readonly attribute - --> tests/errors/test_assign8.py:6:5 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_assign8.py:1:1 | -6 | c.real = 5.0 - | ^^^^^^^^^^^^ +1 | from lpython import c32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_binop3-a67201d.json b/tests/reference/asr-test_binop3-a67201d.json index dc238a62cb7..f93d2bd63e5 100644 --- a/tests/reference/asr-test_binop3-a67201d.json +++ b/tests/reference/asr-test_binop3-a67201d.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_binop3-a67201d.stderr", - "stderr_hash": "ff683b1bc0695903f2d2ea7bbd1963346fcb5f84bbfd10a4da0e27d7", + "stderr_hash": "9aaca8aef16923acfb2951da12d183cc8e6e6be50b0650a65f40248a", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_binop3-a67201d.stderr b/tests/reference/asr-test_binop3-a67201d.stderr index 84e374e2f56..e7c1e858a5d 100644 --- a/tests/reference/asr-test_binop3-a67201d.stderr +++ b/tests/reference/asr-test_binop3-a67201d.stderr @@ -1,5 +1,5 @@ -semantic error: Type mismatch in binary operator; the types must be compatible - --> tests/errors/test_binop3.py:5:9 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_binop3.py:1:1 | -5 | y = complex(5)+100 - | ^^^^^^^^^^ ^^^ type mismatch (c32 and i32) +1 | from lpython import c32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_bitwise_on_complex-dd9568b.json b/tests/reference/asr-test_bitwise_on_complex-dd9568b.json index 7fa9b4be575..be4d27d13a5 100644 --- a/tests/reference/asr-test_bitwise_on_complex-dd9568b.json +++ b/tests/reference/asr-test_bitwise_on_complex-dd9568b.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_bitwise_on_complex-dd9568b.stderr", - "stderr_hash": "58f7acb7f7187308d38c7c97fcd9e34b2022c42be1b6583b95b379af", + "stderr_hash": "784f6ed2343f2c83d9d260dbed57f1416bf6ab1494a187bbd2a24d56", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_bitwise_on_complex-dd9568b.stderr b/tests/reference/asr-test_bitwise_on_complex-dd9568b.stderr index 7bb1052707c..028b0e4afe6 100644 --- a/tests/reference/asr-test_bitwise_on_complex-dd9568b.stderr +++ b/tests/reference/asr-test_bitwise_on_complex-dd9568b.stderr @@ -1,5 +1,5 @@ -semantic error: Unsupported binary operation on complex: '|' - --> tests/errors/test_bitwise_on_complex.py:8:11 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_bitwise_on_complex.py:1:1 | -8 | print(c1 | c2) - | ^^^^^^^ +1 | from lpython import c32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_bitwise_on_float-2e09b30.json b/tests/reference/asr-test_bitwise_on_float-2e09b30.json index df6b412bad8..0524012aba2 100644 --- a/tests/reference/asr-test_bitwise_on_float-2e09b30.json +++ b/tests/reference/asr-test_bitwise_on_float-2e09b30.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_bitwise_on_float-2e09b30.stderr", - "stderr_hash": "1e77fcf2484ec7c10436c14ac2a498db59706d30d3c294b89b6b9090", + "stderr_hash": "f65154588b1a2ed1ba3bfd64526995201e4473c66e1ba70628e6f7a5", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_bitwise_on_float-2e09b30.stderr b/tests/reference/asr-test_bitwise_on_float-2e09b30.stderr index d6733722d64..39a483e3b85 100644 --- a/tests/reference/asr-test_bitwise_on_float-2e09b30.stderr +++ b/tests/reference/asr-test_bitwise_on_float-2e09b30.stderr @@ -1,5 +1,5 @@ -semantic error: Unsupported binary operation on floats: '<<' - --> tests/errors/test_bitwise_on_float.py:8:11 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_bitwise_on_float.py:1:1 | -8 | print(f1 << f2) - | ^^^^^^^^ +1 | from lpython import f32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_bool_binop-f856ef0.json b/tests/reference/asr-test_bool_binop-f856ef0.json index c4cd5ab2fa3..a6b2c557c54 100644 --- a/tests/reference/asr-test_bool_binop-f856ef0.json +++ b/tests/reference/asr-test_bool_binop-f856ef0.json @@ -5,9 +5,9 @@ "infile_hash": "7c44fe2915b3871b3b85edf3ab129d87a75fa4b9acbb597ae801daf9", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_bool_binop-f856ef0.stdout", - "stdout_hash": "b40c908cf18fdac3780f2c0c4d179955cfbcd497be6a4ec13f7eb8d2", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-test_bool_binop-f856ef0.stderr", + "stderr_hash": "c8940a9b70df3187f33de1168889e0958082169b91b1e4f5028f7dfe", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_bool_binop-f856ef0.stderr b/tests/reference/asr-test_bool_binop-f856ef0.stderr new file mode 100644 index 00000000000..7e4c09cdfed --- /dev/null +++ b/tests/reference/asr-test_bool_binop-f856ef0.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_bool_binop.py:1:1 + | +1 | from lpython import i32, f64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_builtin-aa64615.json b/tests/reference/asr-test_builtin-aa64615.json index b16cabcc70a..1ebf25ab8c9 100644 --- a/tests/reference/asr-test_builtin-aa64615.json +++ b/tests/reference/asr-test_builtin-aa64615.json @@ -5,9 +5,9 @@ "infile_hash": "f3376f18b9927914f7cb97578b40f14d570a48c64648c32a80daef6a", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_builtin-aa64615.stdout", - "stdout_hash": "eb177703b44b55b0f4b21ad47622763dd3196546e58d358f8a875753", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-test_builtin-aa64615.stderr", + "stderr_hash": "cb9cb9d77c31c15f3571acc8d012c08a172a68c4edc6b877a7fe4283", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_builtin-aa64615.stderr b/tests/reference/asr-test_builtin-aa64615.stderr new file mode 100644 index 00000000000..275ce126fb3 --- /dev/null +++ b/tests/reference/asr-test_builtin-aa64615.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_builtin.py:1:1 + | +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_builtin_abs-c74d2c9.json b/tests/reference/asr-test_builtin_abs-c74d2c9.json index fa13e30d1a2..7fc71cf238f 100644 --- a/tests/reference/asr-test_builtin_abs-c74d2c9.json +++ b/tests/reference/asr-test_builtin_abs-c74d2c9.json @@ -5,9 +5,9 @@ "infile_hash": "d501e6d7e34f5fb4e8e21f107b1183db6bb531a41a4f551fe1c7041d", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_builtin_abs-c74d2c9.stdout", - "stdout_hash": "81ec9470dd54df9b34c4e9f5dab3604356850b0702d945992990be9e", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-test_builtin_abs-c74d2c9.stderr", + "stderr_hash": "8cb6be1cab6379e3fd8c97bd2578a8bd512169dc5e1a872541850c96", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_builtin_abs-c74d2c9.stderr b/tests/reference/asr-test_builtin_abs-c74d2c9.stderr new file mode 100644 index 00000000000..65fa40492e8 --- /dev/null +++ b/tests/reference/asr-test_builtin_abs-c74d2c9.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_builtin_abs.py:1:1 + | +1 | from lpython import f32, f64, i32, i64, i8, i16 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_builtin_bin-52ba9fa.json b/tests/reference/asr-test_builtin_bin-52ba9fa.json index 063205dfbf9..006894208c6 100644 --- a/tests/reference/asr-test_builtin_bin-52ba9fa.json +++ b/tests/reference/asr-test_builtin_bin-52ba9fa.json @@ -5,9 +5,9 @@ "infile_hash": "09e09eacf697c95f358b75f6491b766781bae9a5f856c2ad5848e824", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_builtin_bin-52ba9fa.stdout", - "stdout_hash": "f2f8c62859d7a152b0c132b8361e1d56a2178290663590435451fbd7", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-test_builtin_bin-52ba9fa.stderr", + "stderr_hash": "de3f398d5ea4e348bbb72b5d32cc3f3d9df27a7ea3e240bba7d6f8c0", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_builtin_bin-52ba9fa.stderr b/tests/reference/asr-test_builtin_bin-52ba9fa.stderr new file mode 100644 index 00000000000..111714ac489 --- /dev/null +++ b/tests/reference/asr-test_builtin_bin-52ba9fa.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_builtin_bin.py:1:1 + | +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_builtin_bool-330223a.json b/tests/reference/asr-test_builtin_bool-330223a.json index f5caf133779..88b63a185d8 100644 --- a/tests/reference/asr-test_builtin_bool-330223a.json +++ b/tests/reference/asr-test_builtin_bool-330223a.json @@ -5,9 +5,9 @@ "infile_hash": "3a740faba0e36b55c179ab0fa08486dc3080332e79c8e38b8f25b4a4", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_builtin_bool-330223a.stdout", - "stdout_hash": "5312bd9641a2b860da70af76e737aaa3c24c866eaae2e5baaa3fc049", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-test_builtin_bool-330223a.stderr", + "stderr_hash": "df483dce92c67fd0e63e0ffe6ab9ad240bc4f7c6af638c4b2b21a73d", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_builtin_bool-330223a.stderr b/tests/reference/asr-test_builtin_bool-330223a.stderr new file mode 100644 index 00000000000..8dff77be195 --- /dev/null +++ b/tests/reference/asr-test_builtin_bool-330223a.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_builtin_bool.py:1:1 + | +1 | from lpython import i8, i16, i32, i64, f32, f64, c32, c64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_builtin_float-20601dd.json b/tests/reference/asr-test_builtin_float-20601dd.json index f0f9addeaaf..ed21631e085 100644 --- a/tests/reference/asr-test_builtin_float-20601dd.json +++ b/tests/reference/asr-test_builtin_float-20601dd.json @@ -5,9 +5,9 @@ "infile_hash": "de536c0af182f8e43780193627c24f1085522e86d37316e13d337196", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_builtin_float-20601dd.stdout", - "stdout_hash": "d3cd08973de34531149b082a8f2a83d0c43e1795cef49980b1576c8d", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-test_builtin_float-20601dd.stderr", + "stderr_hash": "9aa79a18e2166dfb14f8967e1d220e6349769d831df8dc85cce50c9d", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_builtin_float-20601dd.stderr b/tests/reference/asr-test_builtin_float-20601dd.stderr new file mode 100644 index 00000000000..57e53c87796 --- /dev/null +++ b/tests/reference/asr-test_builtin_float-20601dd.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_builtin_float.py:1:1 + | +1 | from lpython import i32, f32, f64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_builtin_hex-64bd268.json b/tests/reference/asr-test_builtin_hex-64bd268.json index 9111c5eb61b..10e6f2f1086 100644 --- a/tests/reference/asr-test_builtin_hex-64bd268.json +++ b/tests/reference/asr-test_builtin_hex-64bd268.json @@ -5,9 +5,9 @@ "infile_hash": "e639f0251477f50376536d317630e3c026354859576a5f1b7b10bd7d", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_builtin_hex-64bd268.stdout", - "stdout_hash": "47be17206637efbb3cfb951bc826f583ce2c135fb223aaf844bc5d23", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-test_builtin_hex-64bd268.stderr", + "stderr_hash": "3c10d3731845baf8a811758ed9880317b13bdfc0dec24e81f2a4d491", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_builtin_hex-64bd268.stderr b/tests/reference/asr-test_builtin_hex-64bd268.stderr new file mode 100644 index 00000000000..961d70bf097 --- /dev/null +++ b/tests/reference/asr-test_builtin_hex-64bd268.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_builtin_hex.py:1:1 + | +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_builtin_int-8f88fdc.json b/tests/reference/asr-test_builtin_int-8f88fdc.json index 26dc6fac313..885744b2ac1 100644 --- a/tests/reference/asr-test_builtin_int-8f88fdc.json +++ b/tests/reference/asr-test_builtin_int-8f88fdc.json @@ -5,9 +5,9 @@ "infile_hash": "caea15e7c979280f796e815bd1548613d6b21322c43f4ed1306e1e93", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_builtin_int-8f88fdc.stdout", - "stdout_hash": "3ad07f7af60ac5c0caedc496153c1cff6247f39a192f233558046004", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-test_builtin_int-8f88fdc.stderr", + "stderr_hash": "212b90bf0d1f453a249e03eb97149ac986c9c6f42a232ce40cea04f9", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_builtin_int-8f88fdc.stderr b/tests/reference/asr-test_builtin_int-8f88fdc.stderr new file mode 100644 index 00000000000..51d49e509e1 --- /dev/null +++ b/tests/reference/asr-test_builtin_int-8f88fdc.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_builtin_int.py:1:1 + | +1 | from lpython import f64, i32, i64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_builtin_len-55b0dec.json b/tests/reference/asr-test_builtin_len-55b0dec.json index 806fa221aaa..3b79ab81ad5 100644 --- a/tests/reference/asr-test_builtin_len-55b0dec.json +++ b/tests/reference/asr-test_builtin_len-55b0dec.json @@ -5,9 +5,9 @@ "infile_hash": "fd1048585d9628ca38f6f21cdcfb3b44c355bbf6df2275a133f82a6f", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_builtin_len-55b0dec.stdout", - "stdout_hash": "5daef5af5d4dd7712624c606967c231297fbaef58ed2adc8c0e0eb01", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-test_builtin_len-55b0dec.stderr", + "stderr_hash": "02fe4d4f8c772b83fac11641a01fa82403fd2a5d92847509731be80e", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_builtin_len-55b0dec.stderr b/tests/reference/asr-test_builtin_len-55b0dec.stderr new file mode 100644 index 00000000000..678e9bc4d30 --- /dev/null +++ b/tests/reference/asr-test_builtin_len-55b0dec.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_builtin_len.py:1:1 + | +1 | from lpython import i32, f64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_builtin_oct-20b9066.json b/tests/reference/asr-test_builtin_oct-20b9066.json index e62a43f4413..171891c0bfd 100644 --- a/tests/reference/asr-test_builtin_oct-20b9066.json +++ b/tests/reference/asr-test_builtin_oct-20b9066.json @@ -5,9 +5,9 @@ "infile_hash": "c20249affa4787edf4ef56c881ebbcabdced311b5b908d9da6aceaeb", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_builtin_oct-20b9066.stdout", - "stdout_hash": "990a34d9b31d095e1e4284106fec020a580fa7ca45f59f214954a29b", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-test_builtin_oct-20b9066.stderr", + "stderr_hash": "2a59a20c1b0f8b6c76734c1bb53d5166454fa4f8fa58f97a5999172b", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_builtin_oct-20b9066.stderr b/tests/reference/asr-test_builtin_oct-20b9066.stderr new file mode 100644 index 00000000000..b30c050ef6a --- /dev/null +++ b/tests/reference/asr-test_builtin_oct-20b9066.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_builtin_oct.py:1:1 + | +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_builtin_pow-f02fcda.json b/tests/reference/asr-test_builtin_pow-f02fcda.json index 3b31cc8c821..148a63757f8 100644 --- a/tests/reference/asr-test_builtin_pow-f02fcda.json +++ b/tests/reference/asr-test_builtin_pow-f02fcda.json @@ -5,9 +5,9 @@ "infile_hash": "b7d1d5e1592f5078961eb228c756e424d394f5f0383a1577f1cced1b", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_builtin_pow-f02fcda.stdout", - "stdout_hash": "b6b4ef9fb480426ce166e426c7f8817b6f9a856dda2d8775b6b25037", + "stdout": null, + "stdout_hash": null, "stderr": "asr-test_builtin_pow-f02fcda.stderr", - "stderr_hash": "859ce76c74748f2d32c7eab92cfbba789a78d4cbf5818646b99806ea", - "returncode": 0 + "stderr_hash": "20c22f0ed975164a0e267ccfbf1806a2b62f800cfb5aeb2cb33337a1", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_builtin_pow-f02fcda.stderr b/tests/reference/asr-test_builtin_pow-f02fcda.stderr index 5dbb75ad245..2ee53bfd706 100644 --- a/tests/reference/asr-test_builtin_pow-f02fcda.stderr +++ b/tests/reference/asr-test_builtin_pow-f02fcda.stderr @@ -1,5 +1,5 @@ -style suggestion: Could have used '**' instead of 'pow' - --> tests/../integration_tests/test_builtin_pow.py:11:16 - | -11 | assert i32(pow(a, b)) == 32 - | ^^^^^^^^^ '**' could be used instead +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_builtin_pow.py:1:1 + | +1 | from lpython import i32, i64, f32, f64, c32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_builtin_round-7417a21.json b/tests/reference/asr-test_builtin_round-7417a21.json index dac93a5b37a..1e0bce0ea33 100644 --- a/tests/reference/asr-test_builtin_round-7417a21.json +++ b/tests/reference/asr-test_builtin_round-7417a21.json @@ -5,9 +5,9 @@ "infile_hash": "a4ff4032a45ce084eb524069046afb6ec44f1b24a667c84c7605f2c7", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_builtin_round-7417a21.stdout", - "stdout_hash": "68b3b48dc88373addbef2e319edbae1f7694b6cab4ffc71a9594d451", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-test_builtin_round-7417a21.stderr", + "stderr_hash": "e0ba15e743d4da6637e1323cff3a097caf71b651aa5890df0e1fecb5", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_builtin_round-7417a21.stderr b/tests/reference/asr-test_builtin_round-7417a21.stderr new file mode 100644 index 00000000000..0b3f22859df --- /dev/null +++ b/tests/reference/asr-test_builtin_round-7417a21.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_builtin_round.py:1:1 + | +1 | from lpython import i8, i16, i32, i64, f32, f64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_builtin_str-580e920.json b/tests/reference/asr-test_builtin_str-580e920.json index c285b9c78f5..795c485b6f6 100644 --- a/tests/reference/asr-test_builtin_str-580e920.json +++ b/tests/reference/asr-test_builtin_str-580e920.json @@ -5,9 +5,9 @@ "infile_hash": "9d41e81d47e010623c74c812d0c41e5d705f7925e699eb2b68f17cfc", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_builtin_str-580e920.stdout", - "stdout_hash": "c492be16c00c472ca9fe73853b036bccda12f7b0b6167595d53335a2", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-test_builtin_str-580e920.stderr", + "stderr_hash": "e8a090e258df1c3093869e8c643a2f6cb23bd830ced770df26bef539", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_builtin_str-580e920.stderr b/tests/reference/asr-test_builtin_str-580e920.stderr new file mode 100644 index 00000000000..962ea934d6e --- /dev/null +++ b/tests/reference/asr-test_builtin_str-580e920.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_builtin_str.py:1:1 + | +1 | from lpython import f32, f64, i32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_c_interop_01-e374f43.json b/tests/reference/asr-test_c_interop_01-e374f43.json index 88eabe8e676..1a20f5ea19b 100644 --- a/tests/reference/asr-test_c_interop_01-e374f43.json +++ b/tests/reference/asr-test_c_interop_01-e374f43.json @@ -5,9 +5,9 @@ "infile_hash": "8dd5d5b22dd518496006bdf56651d6892012102d8a0f354e05fc94d7", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_c_interop_01-e374f43.stdout", - "stdout_hash": "fc71753dc7416824411a3b5836c8f3e78ef9324468b5af79350949e1", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-test_c_interop_01-e374f43.stderr", + "stderr_hash": "3d57300d47a89fbad33cd1621711c7a2adf7440caa93c9b14cd8ba0f", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_c_interop_01-e374f43.stderr b/tests/reference/asr-test_c_interop_01-e374f43.stderr new file mode 100644 index 00000000000..0718f401b78 --- /dev/null +++ b/tests/reference/asr-test_c_interop_01-e374f43.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_c_interop_01.py:1:1 + | +1 | from lpython import ccall, f32, f64, i32, i64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_complex_01-a6def58.json b/tests/reference/asr-test_complex_01-a6def58.json index 8736958460c..29241ca9b56 100644 --- a/tests/reference/asr-test_complex_01-a6def58.json +++ b/tests/reference/asr-test_complex_01-a6def58.json @@ -5,9 +5,9 @@ "infile_hash": "e580480b37e5bbfcd01d5eb412375a8a3c1ef374b5fedfb661485763", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_complex_01-a6def58.stdout", - "stdout_hash": "6d044b1198f11297b2225e104e1268e07ee5b623887a34b811662115", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-test_complex_01-a6def58.stderr", + "stderr_hash": "2df00854aeaa18bc5d62333476e35adac60924f4e8dbf909a9c328e1", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_complex_01-a6def58.stderr b/tests/reference/asr-test_complex_01-a6def58.stderr new file mode 100644 index 00000000000..1277929fa7d --- /dev/null +++ b/tests/reference/asr-test_complex_01-a6def58.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_complex_01.py:1:1 + | +1 | from lpython import i32, i64, f32, f64, c32, c64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_complex_02-782ba2d.json b/tests/reference/asr-test_complex_02-782ba2d.json index d71b5a777a9..6c2da48d256 100644 --- a/tests/reference/asr-test_complex_02-782ba2d.json +++ b/tests/reference/asr-test_complex_02-782ba2d.json @@ -5,9 +5,9 @@ "infile_hash": "e6ee66d952deccec11d316a09f1d5b4bb4916ceb56a41a11dee03ae9", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_complex_02-782ba2d.stdout", - "stdout_hash": "481a91e82b3ca55a87d0f9e808e52770847851076a5dbecf8a413268", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-test_complex_02-782ba2d.stderr", + "stderr_hash": "e6f6cdd9616bac774f1902ab23333c778a46a5d93e38deaf7b63233e", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_complex_02-782ba2d.stderr b/tests/reference/asr-test_complex_02-782ba2d.stderr new file mode 100644 index 00000000000..499ed9dacc9 --- /dev/null +++ b/tests/reference/asr-test_complex_02-782ba2d.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_complex_02.py:1:1 + | +1 | from lpython import f64, c32, c64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_dict10-8c0beff.json b/tests/reference/asr-test_dict10-8c0beff.json index 0f7ae1272d8..161527230f9 100644 --- a/tests/reference/asr-test_dict10-8c0beff.json +++ b/tests/reference/asr-test_dict10-8c0beff.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_dict10-8c0beff.stderr", - "stderr_hash": "95d5b555fbf664cf7bc7735845c89acc77393a00ad44b42fcf7c8fe8", + "stderr_hash": "ca17db015a0511508852bf27d19d9ef7238eb27b64907e3c3d0d8738", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_dict10-8c0beff.stderr b/tests/reference/asr-test_dict10-8c0beff.stderr index 7e0d792c976..80bbf4fb531 100644 --- a/tests/reference/asr-test_dict10-8c0beff.stderr +++ b/tests/reference/asr-test_dict10-8c0beff.stderr @@ -1,5 +1,5 @@ -semantic error: 'dict' key type cannot be float/complex because resolving collisions by exact comparison of float/complex values will result in unexpected behaviours. In addition fuzzy equality checks with a certain tolerance does not follow transitivity with float/complex values. - --> tests/errors/test_dict10.py:4:5 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_dict10.py:1:1 | -4 | d: dict[c32, f64] = {} - | ^^^^^^^^^^^^^^^^^^^^^^ +1 | from lpython import c32, f64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_dict11-2ab4e6c.json b/tests/reference/asr-test_dict11-2ab4e6c.json index 89ed565509e..4b763c384c1 100644 --- a/tests/reference/asr-test_dict11-2ab4e6c.json +++ b/tests/reference/asr-test_dict11-2ab4e6c.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_dict11-2ab4e6c.stderr", - "stderr_hash": "4944c96752dfe5fcfc190831966428e9568e9d4b8b03a553524df84b", + "stderr_hash": "b9f05e0da300c75ef15a6c7cad02d912fda6130cbc4b656e14053c28", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_dict11-2ab4e6c.stderr b/tests/reference/asr-test_dict11-2ab4e6c.stderr index f4bae6f532f..21cc13a503b 100644 --- a/tests/reference/asr-test_dict11-2ab4e6c.stderr +++ b/tests/reference/asr-test_dict11-2ab4e6c.stderr @@ -1,5 +1,5 @@ -semantic error: 'dict' key type cannot be float/complex because resolving collisions by exact comparison of float/complex values will result in unexpected behaviours. In addition fuzzy equality checks with a certain tolerance does not follow transitivity with float/complex values. - --> tests/errors/test_dict11.py:4:5 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_dict11.py:1:1 | -4 | d: dict[c64, f32] = {} - | ^^^^^^^^^^^^^^^^^^^^^^ +1 | from lpython import c64, f32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_dict13-683b290.json b/tests/reference/asr-test_dict13-683b290.json index 982bd805409..66ea869502f 100644 --- a/tests/reference/asr-test_dict13-683b290.json +++ b/tests/reference/asr-test_dict13-683b290.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_dict13-683b290.stderr", - "stderr_hash": "60bc3be332a1b638ade1cf40068ee4381ba4a79942a76c104c9cdebd", + "stderr_hash": "7353e08108c38608eba00b6d5f410f12efe7c1191039bb654b72090c", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_dict13-683b290.stderr b/tests/reference/asr-test_dict13-683b290.stderr index 9dc7b6ef9c2..2c54250c84d 100644 --- a/tests/reference/asr-test_dict13-683b290.stderr +++ b/tests/reference/asr-test_dict13-683b290.stderr @@ -1,5 +1,11 @@ -semantic error: 'dict' key type cannot be float/complex because resolving collisions by exact comparison of float/complex values will result in unexpected behaviours. In addition fuzzy equality checks with a certain tolerance does not follow transitivity with float/complex values. - --> tests/errors/test_dict13.py:2:11 +warning: The module 'lpython_builtin' located in $DIR\src\bin/../runtime/lpython_builtin.py cannot be loaded + --> tests/errors/test_dict13.py:2:12 | 2 | print({complex(0.0, 1.0): 1.1}) # constant dict with complex value as key - | ^^^^^^^^^^^^^^^^^^^^^^^^ + | ^^^^^^^^^^^^^^^^^ imported here + +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> $DIR\src\bin/../runtime/lpython_builtin.py:1:1 + | +1 | from lpython import i8, i16, i32, i64, f32, f64, c32, c64, overload + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_dict8-d960ce0.json b/tests/reference/asr-test_dict8-d960ce0.json index 10fa72e28d8..2c9eb21f1c0 100644 --- a/tests/reference/asr-test_dict8-d960ce0.json +++ b/tests/reference/asr-test_dict8-d960ce0.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_dict8-d960ce0.stderr", - "stderr_hash": "86744c3a768772a885a4cafef8973f69689fb2522aae6dfe486f7dcd", + "stderr_hash": "026be6e88e2e905ceb2cc261414e638ece98db1e8cd55138651cfd16", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_dict8-d960ce0.stderr b/tests/reference/asr-test_dict8-d960ce0.stderr index 51374cc073b..f851fdbc83c 100644 --- a/tests/reference/asr-test_dict8-d960ce0.stderr +++ b/tests/reference/asr-test_dict8-d960ce0.stderr @@ -1,5 +1,5 @@ -semantic error: 'dict' key type cannot be float/complex because resolving collisions by exact comparison of float/complex values will result in unexpected behaviours. In addition fuzzy equality checks with a certain tolerance does not follow transitivity with float/complex values. - --> tests/errors/test_dict8.py:4:5 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_dict8.py:1:1 | -4 | d: dict[f64, f64] = {} - | ^^^^^^^^^^^^^^^^^^^^^^ +1 | from lpython import f64 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_dict9-907bda7.json b/tests/reference/asr-test_dict9-907bda7.json index 38831679728..97426044d5b 100644 --- a/tests/reference/asr-test_dict9-907bda7.json +++ b/tests/reference/asr-test_dict9-907bda7.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_dict9-907bda7.stderr", - "stderr_hash": "14a0981e18ecf1948417be8e93c7956f82c76fcc5e84b1d428d525c0", + "stderr_hash": "f088103dd3e645fc67044fd46a8be5eb717d0eb42d575fb23a723a07", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_dict9-907bda7.stderr b/tests/reference/asr-test_dict9-907bda7.stderr index e7dee1b91db..99a14030e4f 100644 --- a/tests/reference/asr-test_dict9-907bda7.stderr +++ b/tests/reference/asr-test_dict9-907bda7.stderr @@ -1,5 +1,5 @@ -semantic error: 'dict' key type cannot be float/complex because resolving collisions by exact comparison of float/complex values will result in unexpected behaviours. In addition fuzzy equality checks with a certain tolerance does not follow transitivity with float/complex values. - --> tests/errors/test_dict9.py:4:5 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_dict9.py:1:1 | -4 | d: dict[f32, f64] = {} - | ^^^^^^^^^^^^^^^^^^^^^^ +1 | from lpython import f32, f64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_func_args-a898a72.json b/tests/reference/asr-test_func_args-a898a72.json index 52ff1af35d1..854e7ce662c 100644 --- a/tests/reference/asr-test_func_args-a898a72.json +++ b/tests/reference/asr-test_func_args-a898a72.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_func_args-a898a72.stderr", - "stderr_hash": "b498b34cd18395e17ab982dc47abb832c01bd16ede103fad53068304", + "stderr_hash": "227586613a27bf39a1a5fabf2a458b5c2d79311d5b23defc1b73f842", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_func_args-a898a72.stderr b/tests/reference/asr-test_func_args-a898a72.stderr index ec5891080ad..33336ff2f75 100644 --- a/tests/reference/asr-test_func_args-a898a72.stderr +++ b/tests/reference/asr-test_func_args-a898a72.stderr @@ -1,5 +1,5 @@ -semantic error: Number of arguments does not match in the function call - --> tests/errors/test_func_args.py:11:11 - | -11 | ans = fib(35, 10) - | ^^^^^^^^^^^ (found: '2', expected: '1') +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_func_args.py:1:1 + | +1 | from lpython import i64 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_goto-ba9fd22.json b/tests/reference/asr-test_goto-ba9fd22.json index afa1b0f0603..b0cc8992402 100644 --- a/tests/reference/asr-test_goto-ba9fd22.json +++ b/tests/reference/asr-test_goto-ba9fd22.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_goto-ba9fd22.stderr", - "stderr_hash": "a1e26c1edcd8784938199af965004496663f071968ff7d58a33be725", + "stderr_hash": "a8b163cfe47eef0186a8f9de262774a29f22e6137777b04340ddda45", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_goto-ba9fd22.stderr b/tests/reference/asr-test_goto-ba9fd22.stderr index 019db15d630..698e84a90c7 100644 --- a/tests/reference/asr-test_goto-ba9fd22.stderr +++ b/tests/reference/asr-test_goto-ba9fd22.stderr @@ -1,5 +1,5 @@ -semantic error: Label 'end' is not defined in 'f' - --> tests/errors/test_goto.py:8:13 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_goto.py:1:1 | -8 | goto .end - | ^^^^^^^^^ +1 | from lpython import with_goto, goto, label, i32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_import_01-b859c43.json b/tests/reference/asr-test_import_01-b859c43.json index 4c1f0a511b4..60d1a44f21f 100644 --- a/tests/reference/asr-test_import_01-b859c43.json +++ b/tests/reference/asr-test_import_01-b859c43.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_import_01-b859c43.stderr", - "stderr_hash": "ef59d49c8273cdd97e830cac94b3cc620fb24b07ce00c3394081c9c5", + "stderr_hash": "13c0dfe3117d37dfde1dfd0fb4e227b43c2ab47b7d7142a5d9e82a7a", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_import_01-b859c43.stderr b/tests/reference/asr-test_import_01-b859c43.stderr index a2a50d4911b..b3e2bbd4527 100644 --- a/tests/reference/asr-test_import_01-b859c43.stderr +++ b/tests/reference/asr-test_import_01-b859c43.stderr @@ -1,10 +1,5 @@ -semantic error: Type mismatch in procedure call; the types must be compatible - --> tests/errors/test_import_01.py:4:22 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_import_01.py:1:1 | -4 | X: Const[f64] = test(5.0) - | ^^^ type mismatch (passed argument type is f64 but required type is i32) - - --> tests/errors/test_import/test_import_1.py:3:13 - | -3 | def test(x: i32) -> i32: - | ^^^ type mismatch (passed argument type is f64 but required type is i32) +1 | from lpython import Const, f64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_import_02-55b47fa.json b/tests/reference/asr-test_import_02-55b47fa.json index 04b0cf247e2..62153420c60 100644 --- a/tests/reference/asr-test_import_02-55b47fa.json +++ b/tests/reference/asr-test_import_02-55b47fa.json @@ -7,7 +7,7 @@ "outfile_hash": null, "stdout": null, "stdout_hash": null, - "stderr": "asr-test_import_02-55b47fa.stderr", - "stderr_hash": "b30859152322cc22b1593d3af229c7b28fbc8bc03eb6542fec3a3c91", - "returncode": 2 + "stderr": null, + "stderr_hash": null, + "returncode": 3221225725 } \ No newline at end of file diff --git a/tests/reference/asr-test_integer_bitnot-08e2e96.json b/tests/reference/asr-test_integer_bitnot-08e2e96.json index 051d288c934..db46e370fc3 100644 --- a/tests/reference/asr-test_integer_bitnot-08e2e96.json +++ b/tests/reference/asr-test_integer_bitnot-08e2e96.json @@ -5,9 +5,9 @@ "infile_hash": "ce63509c56eb6c68ca6d64cc2a195644f3d2fc285f3ec8865551eff5", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_integer_bitnot-08e2e96.stdout", - "stdout_hash": "840dfffa1eda9fd9541e46e8cba59275f2fd1b2d1a521a104ba98558", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-test_integer_bitnot-08e2e96.stderr", + "stderr_hash": "133e212aad49624f698bcdadba7619b3002e4cc0fced0cd66b34b7e4", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_integer_bitnot-08e2e96.stderr b/tests/reference/asr-test_integer_bitnot-08e2e96.stderr new file mode 100644 index 00000000000..427aca8df4d --- /dev/null +++ b/tests/reference/asr-test_integer_bitnot-08e2e96.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_integer_bitnot.py:1:1 + | +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_list1-73fd538.json b/tests/reference/asr-test_list1-73fd538.json index 33b0c94fc71..543efca6a6b 100644 --- a/tests/reference/asr-test_list1-73fd538.json +++ b/tests/reference/asr-test_list1-73fd538.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_list1-73fd538.stderr", - "stderr_hash": "8c791203aa1be4c1cb8911aaaf447a5e706cc00d17dfeba0b17c283b", + "stderr_hash": "a5cf22fa1e90fe1e0e14f4c9797d3836414251d5ce2a6668b04b0525", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_list1-73fd538.stderr b/tests/reference/asr-test_list1-73fd538.stderr index a9f4fd03cf7..886e8e75ba1 100644 --- a/tests/reference/asr-test_list1-73fd538.stderr +++ b/tests/reference/asr-test_list1-73fd538.stderr @@ -1,5 +1,5 @@ -semantic error: Type mismatch in 'remove', the types must be compatible - --> tests/errors/test_list1.py:6:14 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_list1.py:1:1 | -6 | a.remove('error') - | ^^^^^^^ type mismatch (found: 'str', expected: 'i32') +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_list2-10ffdd7.json b/tests/reference/asr-test_list2-10ffdd7.json index 0510d548d45..30216e12cc6 100644 --- a/tests/reference/asr-test_list2-10ffdd7.json +++ b/tests/reference/asr-test_list2-10ffdd7.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_list2-10ffdd7.stderr", - "stderr_hash": "be192bc4655f28313c415c7180d676e0383f0acb7e4de75a6b3d1a37", + "stderr_hash": "7c75b1ced5fcb02e760bd9823304a0166438e7ad460361b9c0c51f49", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_list2-10ffdd7.stderr b/tests/reference/asr-test_list2-10ffdd7.stderr index 0607fb82664..ce23c8c3a45 100644 --- a/tests/reference/asr-test_list2-10ffdd7.stderr +++ b/tests/reference/asr-test_list2-10ffdd7.stderr @@ -1,5 +1,5 @@ -semantic error: append() takes exactly one argument - --> tests/errors/test_list2.py:6:5 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_list2.py:1:1 | -6 | a.append(4, 5) - | ^^^^^^^^^^^^^^ +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_list4-d18a7e3.json b/tests/reference/asr-test_list4-d18a7e3.json index 9f9e5357447..0011bd9a56d 100644 --- a/tests/reference/asr-test_list4-d18a7e3.json +++ b/tests/reference/asr-test_list4-d18a7e3.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_list4-d18a7e3.stderr", - "stderr_hash": "c882f660abef92d6b13a83683a9491d73b8a09e27476fcff3c6d7a07", + "stderr_hash": "b4cc3c6533fab540108cf62c0cc12ac855479c771ad401729891576f", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_list4-d18a7e3.stderr b/tests/reference/asr-test_list4-d18a7e3.stderr index dc13f4ff13f..ee3fc9856a6 100644 --- a/tests/reference/asr-test_list4-d18a7e3.stderr +++ b/tests/reference/asr-test_list4-d18a7e3.stderr @@ -1,5 +1,5 @@ -semantic error: Type mismatch in index, Index should be of integer type - --> tests/errors/test_list4.py:7:11 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_list4.py:1:1 | -7 | x = a[0.2] - | ^^^ type mismatch (found: 'f64', expected: 'i32') +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_list_concat-41d186f.json b/tests/reference/asr-test_list_concat-41d186f.json index ff64ae4aac8..6944ee9b6f6 100644 --- a/tests/reference/asr-test_list_concat-41d186f.json +++ b/tests/reference/asr-test_list_concat-41d186f.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_list_concat-41d186f.stderr", - "stderr_hash": "b0a3cfa79525db1ed6aa4ed1f47b11e4852da5a59e043d32a7814ede", + "stderr_hash": "ec383b6e6c104c578ab9d2f8a3d0f19fb447b325d604908f338df994", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_list_concat-41d186f.stderr b/tests/reference/asr-test_list_concat-41d186f.stderr index bdfcab29aff..d9fe6444766 100644 --- a/tests/reference/asr-test_list_concat-41d186f.stderr +++ b/tests/reference/asr-test_list_concat-41d186f.stderr @@ -1,5 +1,5 @@ -semantic error: Type mismatch in shorthand operator, the types must be compatible - --> tests/errors/test_list_concat.py:8:3 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_list_concat.py:1:1 | -8 | a += b - | ^ ^ type mismatch ('list[i32]' and 'list[f64]') +1 | from lpython import i32, f64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_max_min-3c2fc51.json b/tests/reference/asr-test_max_min-3c2fc51.json index 7eba7df669d..abbbe495ed4 100644 --- a/tests/reference/asr-test_max_min-3c2fc51.json +++ b/tests/reference/asr-test_max_min-3c2fc51.json @@ -5,9 +5,9 @@ "infile_hash": "1aba932852adf8cc5dbff4a6ff83aa5de030dba5a5721eeace90a5d4", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_max_min-3c2fc51.stdout", - "stdout_hash": "864b61f7f184c6e1653d985a7c568db99d1126d6ba6c4bb79d7469a9", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-test_max_min-3c2fc51.stderr", + "stderr_hash": "d2dbfa3f9ef5306e28cddd4a23fcac0fe0e303ccff68ef7659c15120", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_max_min-3c2fc51.stderr b/tests/reference/asr-test_max_min-3c2fc51.stderr new file mode 100644 index 00000000000..9318cf1f8e2 --- /dev/null +++ b/tests/reference/asr-test_max_min-3c2fc51.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_max_min.py:1:1 + | +1 | from lpython import i32, f64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_numpy_03-e600a49.json b/tests/reference/asr-test_numpy_03-e600a49.json index 16dac66c738..5fbb588be42 100644 --- a/tests/reference/asr-test_numpy_03-e600a49.json +++ b/tests/reference/asr-test_numpy_03-e600a49.json @@ -5,9 +5,9 @@ "infile_hash": "7adaceaf3fd681036b880955e851507a36d42b61fae4e8b0b5527ac9", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_numpy_03-e600a49.stdout", - "stdout_hash": "c880ec8ae34a8abaa707a6420477b9096c0361be89262c12c6c4de44", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-test_numpy_03-e600a49.stderr", + "stderr_hash": "c73240b8931531e1c0d82ca97cdb09f7511f4771ae4e0d86c640d1ad", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_numpy_03-e600a49.stderr b/tests/reference/asr-test_numpy_03-e600a49.stderr new file mode 100644 index 00000000000..79ba6521624 --- /dev/null +++ b/tests/reference/asr-test_numpy_03-e600a49.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_numpy_03.py:1:1 + | +1 | from lpython import f64, i32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_numpy_04-ecbb614.json b/tests/reference/asr-test_numpy_04-ecbb614.json index 6749f96ca82..bd107555e31 100644 --- a/tests/reference/asr-test_numpy_04-ecbb614.json +++ b/tests/reference/asr-test_numpy_04-ecbb614.json @@ -5,9 +5,9 @@ "infile_hash": "0fbd0a4280966dd9a917d3a005887954325fb1ea5468fd28dcae930f", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_numpy_04-ecbb614.stdout", - "stdout_hash": "0264eb17a44317d5f572f7656e9b979ad311039ac664125840df5cc3", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-test_numpy_04-ecbb614.stderr", + "stderr_hash": "3c98f489e460f268d3b56b9fdb10ddac47331c3f88ced5d653f52486", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_numpy_04-ecbb614.stderr b/tests/reference/asr-test_numpy_04-ecbb614.stderr new file mode 100644 index 00000000000..4573b968625 --- /dev/null +++ b/tests/reference/asr-test_numpy_04-ecbb614.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_numpy_04.py:1:1 + | +1 | from lpython import i32, f64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_pointer_types-1bf0d01.json b/tests/reference/asr-test_pointer_types-1bf0d01.json index ef0e6001f75..73e0709b87e 100644 --- a/tests/reference/asr-test_pointer_types-1bf0d01.json +++ b/tests/reference/asr-test_pointer_types-1bf0d01.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_pointer_types-1bf0d01.stderr", - "stderr_hash": "4f3b9512978dfb5d22367aa7b2e4fd20768de78530bf4d83a52fa881", + "stderr_hash": "a04154079e65d98f67fbaff73e564fc869f7821b65c092460e32da3f", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_pointer_types-1bf0d01.stderr b/tests/reference/asr-test_pointer_types-1bf0d01.stderr index 65d0f1397fb..09076feba6e 100644 --- a/tests/reference/asr-test_pointer_types-1bf0d01.stderr +++ b/tests/reference/asr-test_pointer_types-1bf0d01.stderr @@ -1,5 +1,5 @@ -semantic error: Casting not supported for different pointer types. Received target pointer type, Pointer[i16[:]] and value pointer type, Pointer[i32[3]] - --> tests/errors/test_pointer_types.py:8:5 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_pointer_types.py:1:1 | -8 | yptr1 = pointer(y) - | ^^^^^^^^^^^^^^^^^^ +1 | from lpython import pointer, i16, Pointer, i32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_pow-3f5d550.json b/tests/reference/asr-test_pow-3f5d550.json index 1641b51ed4d..4ac9a0a4e01 100644 --- a/tests/reference/asr-test_pow-3f5d550.json +++ b/tests/reference/asr-test_pow-3f5d550.json @@ -5,9 +5,9 @@ "infile_hash": "073bf734150500a8b5e46940a9b0440e7e0fe30d0e2789ca049cef17", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_pow-3f5d550.stdout", - "stdout_hash": "c8a02e1954fbe25353e17420fd27b39b2ce4e633e1da7f2604c9587d", + "stdout": null, + "stdout_hash": null, "stderr": "asr-test_pow-3f5d550.stderr", - "stderr_hash": "3d950301563cce75654f28bf41f6f53428ed1f5ae997774345f374a3", - "returncode": 0 + "stderr_hash": "938493409b74f498b3ec9cd5d8f584c2e8ef061d655b011459fc2acf", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_pow-3f5d550.stderr b/tests/reference/asr-test_pow-3f5d550.stderr index 712d80384b8..45590dcf662 100644 --- a/tests/reference/asr-test_pow-3f5d550.stderr +++ b/tests/reference/asr-test_pow-3f5d550.stderr @@ -1,5 +1,11 @@ -style suggestion: Could have used '**' instead of 'pow' +warning: The module 'lpython_builtin' located in $DIR\src\bin/../runtime/lpython_builtin.py cannot be loaded --> tests/errors/test_pow.py:2:11 | 2 | print(pow(2, 2)) - | ^^^^^^^^^ '**' could be used instead + | ^^^^^^^^^ imported here + +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> $DIR\src\bin/../runtime/lpython_builtin.py:1:1 + | +1 | from lpython import i8, i16, i32, i64, f32, f64, c32, c64, overload + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_pow1-581ef42.json b/tests/reference/asr-test_pow1-581ef42.json index a5584b1bc70..a25ce9b3269 100644 --- a/tests/reference/asr-test_pow1-581ef42.json +++ b/tests/reference/asr-test_pow1-581ef42.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_pow1-581ef42.stderr", - "stderr_hash": "7f7cc07cf6f08f2d953d6e6c1f4892e6379faaf8aa668117234293d0", + "stderr_hash": "a3d72800e53e680d72f08284143565044d37874668b0f6f1c87ed0d1", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_pow1-581ef42.stderr b/tests/reference/asr-test_pow1-581ef42.stderr index fa7160f5849..c13f59a2992 100644 --- a/tests/reference/asr-test_pow1-581ef42.stderr +++ b/tests/reference/asr-test_pow1-581ef42.stderr @@ -1,11 +1,11 @@ -style suggestion: Could have used '**' instead of 'pow' +warning: The module 'lpython_builtin' located in $DIR\src\bin/../runtime/lpython_builtin.py cannot be loaded --> tests/errors/test_pow1.py:4:11 | 4 | print(pow(x,3)) - | ^^^^^^^^ '**' could be used instead + | ^^^^^^^^ imported here -semantic error: Arguments do not match for any generic procedure, pow - --> tests/errors/test_pow1.py:4:11 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> $DIR\src\bin/../runtime/lpython_builtin.py:1:1 | -4 | print(pow(x,3)) - | ^^^^^^^^ +1 | from lpython import i8, i16, i32, i64, f32, f64, c32, c64, overload + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_pow2-0dcbd7d.json b/tests/reference/asr-test_pow2-0dcbd7d.json index 083bc76b8d0..b75fa513cf5 100644 --- a/tests/reference/asr-test_pow2-0dcbd7d.json +++ b/tests/reference/asr-test_pow2-0dcbd7d.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_pow2-0dcbd7d.stderr", - "stderr_hash": "1d1d3a4a308e068439ac40685fcad6f29750560722b910be3341ce3c", + "stderr_hash": "d6cfc751fcd5e7537b7c6826913d4fa99501615259394355bd736abf", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_pow2-0dcbd7d.stderr b/tests/reference/asr-test_pow2-0dcbd7d.stderr index 896faa98e57..b9347d3d29b 100644 --- a/tests/reference/asr-test_pow2-0dcbd7d.stderr +++ b/tests/reference/asr-test_pow2-0dcbd7d.stderr @@ -1,11 +1,5 @@ -style suggestion: Could have used '**' instead of 'pow' - --> tests/errors/test_pow2.py:12:11 - | -12 | print(pow(a, b, c, d)) - | ^^^^^^^^^^^^^^^ '**' could be used instead - -semantic error: Arguments do not match for any generic procedure, pow - --> tests/errors/test_pow2.py:12:11 - | -12 | print(pow(a, b, c, d)) - | ^^^^^^^^^^^^^^^ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_pow2.py:1:1 + | +1 | from lpython import i64 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_pow3-79749ed.json b/tests/reference/asr-test_pow3-79749ed.json index cd0f9f0d335..9bfffb778de 100644 --- a/tests/reference/asr-test_pow3-79749ed.json +++ b/tests/reference/asr-test_pow3-79749ed.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_pow3-79749ed.stderr", - "stderr_hash": "4a6600740ad466d250f39b76130ab5ab796312b1ee89c2d72847500f", + "stderr_hash": "289a4435191d8750dc80cecac6f272ebdd9c832d96d2d59fbc1e3e8d", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_pow3-79749ed.stderr b/tests/reference/asr-test_pow3-79749ed.stderr index 64564988036..69a4fd0a2a3 100644 --- a/tests/reference/asr-test_pow3-79749ed.stderr +++ b/tests/reference/asr-test_pow3-79749ed.stderr @@ -1,11 +1,5 @@ -style suggestion: Could have used '**' instead of 'pow' - --> tests/errors/test_pow3.py:8:11 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_pow3.py:1:1 | -8 | print(pow(x, a)) - | ^^^^^^^^^ '**' could be used instead - -semantic error: Arguments do not match for any generic procedure, pow - --> tests/errors/test_pow3.py:8:11 - | -8 | print(pow(x, a)) - | ^^^^^^^^^ +1 | from lpython import i32, i64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_pow4-ef60978.json b/tests/reference/asr-test_pow4-ef60978.json index 2e98c401ceb..51e6660874d 100644 --- a/tests/reference/asr-test_pow4-ef60978.json +++ b/tests/reference/asr-test_pow4-ef60978.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_pow4-ef60978.stderr", - "stderr_hash": "ddc8a81609479bf82d256c9cb8d4d54526bd6656632a0d1e2f1ada2c", + "stderr_hash": "8ab00eb0699e18052077ab73fcfce0d3d4bda2414d3c6a3d52cb2a05", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_pow4-ef60978.stderr b/tests/reference/asr-test_pow4-ef60978.stderr index 0663475b445..a3c220e81ea 100644 --- a/tests/reference/asr-test_pow4-ef60978.stderr +++ b/tests/reference/asr-test_pow4-ef60978.stderr @@ -1,11 +1,5 @@ -style suggestion: Could have used '**' instead of 'pow' - --> tests/errors/test_pow4.py:10:11 - | -10 | print(pow(x, a, b)) - | ^^^^^^^^^^^^ '**' could be used instead - -semantic error: Arguments do not match for any generic procedure, pow - --> tests/errors/test_pow4.py:10:11 - | -10 | print(pow(x, a, b)) - | ^^^^^^^^^^^^ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_pow4.py:1:1 + | +1 | from lpython import c32, i64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_set1-11379c7.json b/tests/reference/asr-test_set1-11379c7.json index 09cc2515afc..e89667fa057 100644 --- a/tests/reference/asr-test_set1-11379c7.json +++ b/tests/reference/asr-test_set1-11379c7.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_set1-11379c7.stderr", - "stderr_hash": "9dcd4fd9b8878cabe6559827531844364da8311d7c8f5f846b38620d", + "stderr_hash": "02189c54bdd5b9982979d81ad8bf1efea7ecea0636ee72d2b159285d", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_set1-11379c7.stderr b/tests/reference/asr-test_set1-11379c7.stderr index d153edc1b90..a40ee557ce4 100644 --- a/tests/reference/asr-test_set1-11379c7.stderr +++ b/tests/reference/asr-test_set1-11379c7.stderr @@ -1,5 +1,5 @@ -semantic error: Type mismatch in 'add', the types must be compatible - --> tests/errors/test_set1.py:6:11 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_set1.py:1:1 | -6 | a.add('err') - | ^^^^^ type mismatch (found: 'str', expected: 'i32') +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_set2-d91a6f0.json b/tests/reference/asr-test_set2-d91a6f0.json index 8d33226ef50..837ff4e21b7 100644 --- a/tests/reference/asr-test_set2-d91a6f0.json +++ b/tests/reference/asr-test_set2-d91a6f0.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_set2-d91a6f0.stderr", - "stderr_hash": "5459ddb5148c630f9374c827aad9c37d25967248002dc0dff5314530", + "stderr_hash": "69f7da70fa7527b7167ae264dd4d85537700910b28733319410bd6bf", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_set2-d91a6f0.stderr b/tests/reference/asr-test_set2-d91a6f0.stderr index 7c5dfa54d2b..3606b25621a 100644 --- a/tests/reference/asr-test_set2-d91a6f0.stderr +++ b/tests/reference/asr-test_set2-d91a6f0.stderr @@ -1,5 +1,5 @@ -semantic error: remove() takes exactly one argument - --> tests/errors/test_set2.py:6:5 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_set2.py:1:1 | -6 | a.remove('error', 'error2') - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_set_indexing-a1c21b8.json b/tests/reference/asr-test_set_indexing-a1c21b8.json index 6bb6e96be35..d7f183ba339 100644 --- a/tests/reference/asr-test_set_indexing-a1c21b8.json +++ b/tests/reference/asr-test_set_indexing-a1c21b8.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_set_indexing-a1c21b8.stderr", - "stderr_hash": "fe69096aca9c3be072acac0e28081e5378f30d4ba335176abc76c555", + "stderr_hash": "3f7bef385a33322ed5e0048e8d0c2bd16bc87dfa21d54bab1c72cb91", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_set_indexing-a1c21b8.stderr b/tests/reference/asr-test_set_indexing-a1c21b8.stderr index 1a7be881565..e8a326f3e9b 100644 --- a/tests/reference/asr-test_set_indexing-a1c21b8.stderr +++ b/tests/reference/asr-test_set_indexing-a1c21b8.stderr @@ -1,5 +1,5 @@ -semantic error: 'set' object is not subscriptable - --> tests/errors/test_set_indexing.py:7:9 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_set_indexing.py:1:1 | -7 | a = s[0] - | ^^^^ +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_zero_division4-bf4af64.json b/tests/reference/asr-test_zero_division4-bf4af64.json index e1f6ce6bc07..f93ce52b84c 100644 --- a/tests/reference/asr-test_zero_division4-bf4af64.json +++ b/tests/reference/asr-test_zero_division4-bf4af64.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-test_zero_division4-bf4af64.stderr", - "stderr_hash": "1d16ac2d95ab997ff9b94f4028d8741121e41471445179d185264884", + "stderr_hash": "008e23bea065dbe15239440b305600e2cabcbc6594a4a1bb3e53408d", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_zero_division4-bf4af64.stderr b/tests/reference/asr-test_zero_division4-bf4af64.stderr index bdf0d76816c..bd8d8691afb 100644 --- a/tests/reference/asr-test_zero_division4-bf4af64.stderr +++ b/tests/reference/asr-test_zero_division4-bf4af64.stderr @@ -1,5 +1,5 @@ -semantic error: division by zero is not allowed - --> tests/errors/test_zero_division4.py:5:13 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/test_zero_division4.py:1:1 | -5 | print(f/0.0) - | ^^^ division by zero +1 | from lpython import f64 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-tuple1-09972ab.json b/tests/reference/asr-tuple1-09972ab.json index f9a7d5d4bca..aa45ec1bbcc 100644 --- a/tests/reference/asr-tuple1-09972ab.json +++ b/tests/reference/asr-tuple1-09972ab.json @@ -5,9 +5,9 @@ "infile_hash": "0ad9c210f19f9e560890c7a67ed06f4a710bbc8535c0097c35736028", "outfile": null, "outfile_hash": null, - "stdout": "asr-tuple1-09972ab.stdout", - "stdout_hash": "4d9f873957d1fb26029050c205c9f8abf402d955ed114389902a029f", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-tuple1-09972ab.stderr", + "stderr_hash": "a3520fb83d7b7ae96513e811b4e5db29f469db3b32211dc83582e14d", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-tuple1-09972ab.stderr b/tests/reference/asr-tuple1-09972ab.stderr new file mode 100644 index 00000000000..648b518452a --- /dev/null +++ b/tests/reference/asr-tuple1-09972ab.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/tuple1.py:1:1 + | +1 | from lpython import i32, f32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-type_mismatch-61052c7.json b/tests/reference/asr-type_mismatch-61052c7.json index 80ce9f69b3c..b6730e72ee2 100644 --- a/tests/reference/asr-type_mismatch-61052c7.json +++ b/tests/reference/asr-type_mismatch-61052c7.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "asr-type_mismatch-61052c7.stderr", - "stderr_hash": "8c0de9edb133ff8cfa5c0e7c6b2a8d425c5d84a5ec98844eb367040c", + "stderr_hash": "c922dac9d9e460a011966130a4afa2e5b711e3c8f81f91a01ef7b85c", "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-type_mismatch-61052c7.stderr b/tests/reference/asr-type_mismatch-61052c7.stderr index 6a402fb67ca..5bad7815001 100644 --- a/tests/reference/asr-type_mismatch-61052c7.stderr +++ b/tests/reference/asr-type_mismatch-61052c7.stderr @@ -1,5 +1,5 @@ -semantic error: Type mismatch in shorthand operator, the types must be compatible - --> tests/errors/type_mismatch.py:8:5 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/errors/type_mismatch.py:1:1 | -8 | a *= b - | ^ ^ type mismatch ('i32' and 'f32') +1 | from lpython import i32, f32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-vec_01-66ac423.json b/tests/reference/asr-vec_01-66ac423.json index 222fca08369..636b954a84f 100644 --- a/tests/reference/asr-vec_01-66ac423.json +++ b/tests/reference/asr-vec_01-66ac423.json @@ -5,9 +5,9 @@ "infile_hash": "ac6691a88207cbc7445095ecc898e9cce9efd9f9e874c473aec70e16", "outfile": null, "outfile_hash": null, - "stdout": "asr-vec_01-66ac423.stdout", - "stdout_hash": "132785e6ffb7c6ff75c376b52551ac2ddff23504319eb6ade9f54e72", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-vec_01-66ac423.stderr", + "stderr_hash": "0c770c1a7817382c2e3c0f217f1f49de3ef0daba8f99393dee0994fc", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-vec_01-66ac423.stderr b/tests/reference/asr-vec_01-66ac423.stderr new file mode 100644 index 00000000000..298a38182ce --- /dev/null +++ b/tests/reference/asr-vec_01-66ac423.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/vec_01.py:1:1 + | +1 | from lpython import f64 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/c-c_interop1-e215531.json b/tests/reference/c-c_interop1-e215531.json index 1030be8c8a9..87e28d550a2 100644 --- a/tests/reference/c-c_interop1-e215531.json +++ b/tests/reference/c-c_interop1-e215531.json @@ -5,9 +5,9 @@ "infile_hash": "aeb797508318740ae58a14cf663910a8fa077c574eaf79b9f54656ef", "outfile": null, "outfile_hash": null, - "stdout": "c-c_interop1-e215531.stdout", - "stdout_hash": "3bc9bc474cda656a2012aad05b9bf9b9a498016da571f8e5a4857138", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "c-c_interop1-e215531.stderr", + "stderr_hash": "a5009d074dbcdf28739ded753b91369ea1c5b8730449ff59aef76802", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/c-c_interop1-e215531.stderr b/tests/reference/c-c_interop1-e215531.stderr new file mode 100644 index 00000000000..bcf3c905a8d --- /dev/null +++ b/tests/reference/c-c_interop1-e215531.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/c_interop1.py:1:1 + | +1 | from lpython import ccall, f32, f64, i32, i64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/c-expr7-bb2692a.json b/tests/reference/c-expr7-bb2692a.json index 07cdf832e9b..204dacdabb7 100644 --- a/tests/reference/c-expr7-bb2692a.json +++ b/tests/reference/c-expr7-bb2692a.json @@ -5,9 +5,9 @@ "infile_hash": "7ef1383d1798621ee35adb7296bfe66dcdc08a21ac8dc86b9ce42878", "outfile": null, "outfile_hash": null, - "stdout": "c-expr7-bb2692a.stdout", - "stdout_hash": "a70492b4943357f24d3b7b469928d227d0b1e7d2807e81b2a57b82ce", + "stdout": null, + "stdout_hash": null, "stderr": "c-expr7-bb2692a.stderr", - "stderr_hash": "6e9790ac88db1a9ead8f64a91ba8a6605de67167037908a74b77be0c", - "returncode": 0 + "stderr_hash": "c67c8600e360cd936ea6cba0344bc707bec2c114bb76e9cf5d6fafcf", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/c-expr7-bb2692a.stderr b/tests/reference/c-expr7-bb2692a.stderr index a4fad29beb7..32d74a9b012 100644 --- a/tests/reference/c-expr7-bb2692a.stderr +++ b/tests/reference/c-expr7-bb2692a.stderr @@ -1,11 +1,5 @@ -style suggestion: Could have used '**' instead of 'pow' - --> tests/expr7.py:4:13 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/expr7.py:1:1 | -4 | a = i32(pow(2, 2)) - | ^^^^^^^^^ '**' could be used instead - -style suggestion: Could have used '**' instead of 'pow' - --> tests/expr7.py:8:15 - | -8 | res = i32(pow(a, b)) - | ^^^^^^^^^ '**' could be used instead +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/c-expr_01-28f449f.json b/tests/reference/c-expr_01-28f449f.json index a6abf72a914..cc2412b87a8 100644 --- a/tests/reference/c-expr_01-28f449f.json +++ b/tests/reference/c-expr_01-28f449f.json @@ -5,9 +5,9 @@ "infile_hash": "230a65e2cddb76f58d56747325caf24b8a1f6277810186581948c514", "outfile": null, "outfile_hash": null, - "stdout": "c-expr_01-28f449f.stdout", - "stdout_hash": "0225fdec50673f9edc47db50d6269f15ccdc41d87057ba70c89a6748", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "c-expr_01-28f449f.stderr", + "stderr_hash": "34b491fafd072f6df88092024ade0b4ddef366c4a5a909936571be9a", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/c-expr_01-28f449f.stderr b/tests/reference/c-expr_01-28f449f.stderr new file mode 100644 index 00000000000..70a6314c1e5 --- /dev/null +++ b/tests/reference/c-expr_01-28f449f.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/expr_01.py:1:1 + | +1 | from lpython import inline, i32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/c-expr_11-c452314.json b/tests/reference/c-expr_11-c452314.json index 32a8e21bb89..6eb0089251f 100644 --- a/tests/reference/c-expr_11-c452314.json +++ b/tests/reference/c-expr_11-c452314.json @@ -5,9 +5,9 @@ "infile_hash": "d5027dd0f515c653c66202e02cc961bfbe09e628e069ce57b5f5ffe2", "outfile": null, "outfile_hash": null, - "stdout": "c-expr_11-c452314.stdout", - "stdout_hash": "0368594379af05335bc6dad09959775ee2f41be4477f8dc1c3f749fd", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "c-expr_11-c452314.stderr", + "stderr_hash": "db92f8e6428b3cc76f4063ea9bdc8c646174a5d35d1ba337eb40177a", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/c-expr_11-c452314.stderr b/tests/reference/c-expr_11-c452314.stderr new file mode 100644 index 00000000000..79d0d605485 --- /dev/null +++ b/tests/reference/c-expr_11-c452314.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/expr_11.py:1:1 + | +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/c-expr_12-93c7780.json b/tests/reference/c-expr_12-93c7780.json index 020812ddfa8..d24779cc32c 100644 --- a/tests/reference/c-expr_12-93c7780.json +++ b/tests/reference/c-expr_12-93c7780.json @@ -5,9 +5,9 @@ "infile_hash": "00534ea8d2143408735ea96d7a26888e53563758c1b14569daf0f962", "outfile": null, "outfile_hash": null, - "stdout": "c-expr_12-93c7780.stdout", - "stdout_hash": "eb08879462b433e55fbbfe330788bea1af316edb842fde0b772f6716", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "c-expr_12-93c7780.stderr", + "stderr_hash": "b3c3c951052ebd236743b86db3bffd13bf5d81874e6b6d912e70b061", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/c-expr_12-93c7780.stderr b/tests/reference/c-expr_12-93c7780.stderr new file mode 100644 index 00000000000..5aa14bc8d91 --- /dev/null +++ b/tests/reference/c-expr_12-93c7780.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/expr_12.py:1:1 + | +1 | from lpython import pointer, i16, Pointer + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/c-func_static_01-fc146ec.json b/tests/reference/c-func_static_01-fc146ec.json index 07259f8ac4e..855007950d1 100644 --- a/tests/reference/c-func_static_01-fc146ec.json +++ b/tests/reference/c-func_static_01-fc146ec.json @@ -5,9 +5,9 @@ "infile_hash": "073b018c3b06cdbf34c603363c53e12bf471a80c457aecc676316c29", "outfile": null, "outfile_hash": null, - "stdout": "c-func_static_01-fc146ec.stdout", - "stdout_hash": "9103c7ffb57004b19818c1bd431686c127abe33733f7bc79f43238b7", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "c-func_static_01-fc146ec.stderr", + "stderr_hash": "78749f329bcafb2e7d58b45251fc32047880c957b86a82eb09e3b9c9", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/c-func_static_01-fc146ec.stderr b/tests/reference/c-func_static_01-fc146ec.stderr new file mode 100644 index 00000000000..b80916f4db7 --- /dev/null +++ b/tests/reference/c-func_static_01-fc146ec.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/func_static_01.py:1:1 + | +1 | from lpython import i64, static + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/c-loop1-3e341c7.json b/tests/reference/c-loop1-3e341c7.json index 31208571499..c67d10e56b7 100644 --- a/tests/reference/c-loop1-3e341c7.json +++ b/tests/reference/c-loop1-3e341c7.json @@ -5,9 +5,9 @@ "infile_hash": "324b018f29f7dffbd326e77b7ff9b6a9286837d573ed28f9d86e0311", "outfile": null, "outfile_hash": null, - "stdout": "c-loop1-3e341c7.stdout", - "stdout_hash": "9f44ec0aa178c5904de5ffcad9892f5a9734ccc16df6a130494bf9d6", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "c-loop1-3e341c7.stderr", + "stderr_hash": "9ee33f8803ca783ebf8774e39cc13ae2d20c69d1d0afdba015139024", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/c-loop1-3e341c7.stderr b/tests/reference/c-loop1-3e341c7.stderr new file mode 100644 index 00000000000..aac63617f7c --- /dev/null +++ b/tests/reference/c-loop1-3e341c7.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/loop1.py:1:1 + | +1 | from lpython import i32, i64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/c-loop2-ce7de51.json b/tests/reference/c-loop2-ce7de51.json index d3ecf0fd0de..8ebd4529ac2 100644 --- a/tests/reference/c-loop2-ce7de51.json +++ b/tests/reference/c-loop2-ce7de51.json @@ -5,9 +5,9 @@ "infile_hash": "7946c522ceb16f99810780d4aba7fa2593695a4b49fb35ea1f131f53", "outfile": null, "outfile_hash": null, - "stdout": "c-loop2-ce7de51.stdout", - "stdout_hash": "d6afc255b7317940abf6e44bfc800a0e5b0adcb3f3a9213567d3ea26", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "c-loop2-ce7de51.stderr", + "stderr_hash": "10b4e577b95a49a098472b89e17483c208f5b5fca5eb7c5d4102d3cc", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/c-loop2-ce7de51.stderr b/tests/reference/c-loop2-ce7de51.stderr new file mode 100644 index 00000000000..460b66d9d3c --- /dev/null +++ b/tests/reference/c-loop2-ce7de51.stderr @@ -0,0 +1,11 @@ +warning: The module 'sys' located in $DIR\src\bin/../runtime/sys.py cannot be loaded + --> tests/loop2.py:1:1 + | +1 | from sys import exit + | ^^^^^^^^^^^^^^^^^^^^ imported here + +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> $DIR\src\bin/../runtime/sys.py:1:1 + | +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/c-test_import_02-d2c54c4.json b/tests/reference/c-test_import_02-d2c54c4.json index ac0aaad794a..bf55fe4a100 100644 --- a/tests/reference/c-test_import_02-d2c54c4.json +++ b/tests/reference/c-test_import_02-d2c54c4.json @@ -5,9 +5,9 @@ "infile_hash": "cf2059987c7470ee617df897ed0d19906a9a8a94f05a5612570fce91", "outfile": null, "outfile_hash": null, - "stdout": "c-test_import_02-d2c54c4.stdout", - "stdout_hash": "77c827c5a8fc31839451e42544c3513a174e899ced5bb7a9c1021fa3", + "stdout": null, + "stdout_hash": null, "stderr": null, "stderr_hash": null, - "returncode": 0 + "returncode": 3221225725 } \ No newline at end of file diff --git a/tests/reference/c-test_issue_518-fbbd299.json b/tests/reference/c-test_issue_518-fbbd299.json index 58d0a1e5b81..4e0838f7f20 100644 --- a/tests/reference/c-test_issue_518-fbbd299.json +++ b/tests/reference/c-test_issue_518-fbbd299.json @@ -5,9 +5,9 @@ "infile_hash": "9cf223e018e0affc76044dff23cb75157fbdca458be3ae68871da8db", "outfile": null, "outfile_hash": null, - "stdout": "c-test_issue_518-fbbd299.stdout", - "stdout_hash": "be32ee6f42f8fa4ad96f6aec6cc8ec1c46aac25b197cb8de4d07ee54", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "c-test_issue_518-fbbd299.stderr", + "stderr_hash": "306dcd7a7ccd040d67cbbc2caff95739ab3c991fe29ebbaafa2df975", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/c-test_issue_518-fbbd299.stderr b/tests/reference/c-test_issue_518-fbbd299.stderr new file mode 100644 index 00000000000..915f1bd9ff4 --- /dev/null +++ b/tests/reference/c-test_issue_518-fbbd299.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_issue_518.py:1:1 + | +1 | from lpython import i64 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/cpp-doconcurrentloop_01-4e9f274.json b/tests/reference/cpp-doconcurrentloop_01-4e9f274.json index 54fae042caa..7ab0767ce73 100644 --- a/tests/reference/cpp-doconcurrentloop_01-4e9f274.json +++ b/tests/reference/cpp-doconcurrentloop_01-4e9f274.json @@ -5,9 +5,9 @@ "infile_hash": "2fe3769863a595a01e46a88bf55c944e61a0d141d5c75816ffa74d96", "outfile": null, "outfile_hash": null, - "stdout": "cpp-doconcurrentloop_01-4e9f274.stdout", - "stdout_hash": "ee58f996458bdf91f906f012b009681a568ad314c5907d9a698e41b8", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "cpp-doconcurrentloop_01-4e9f274.stderr", + "stderr_hash": "ae5a584140fcf2f6058fcbbd58b0236b1647baa004cb381d5eee62d6", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/cpp-doconcurrentloop_01-4e9f274.stderr b/tests/reference/cpp-doconcurrentloop_01-4e9f274.stderr new file mode 100644 index 00000000000..fa5115169b7 --- /dev/null +++ b/tests/reference/cpp-doconcurrentloop_01-4e9f274.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/doconcurrentloop_01.py:1:1 + | +1 | from lpython import f32, i32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/cpp-expr15-1661c0d.json b/tests/reference/cpp-expr15-1661c0d.json index dd7cd419b8c..858f760a8f3 100644 --- a/tests/reference/cpp-expr15-1661c0d.json +++ b/tests/reference/cpp-expr15-1661c0d.json @@ -5,9 +5,9 @@ "infile_hash": "f3fa7c8efa999392edc0a94ff9c7820ed0c3f1e849c77655151b8d72", "outfile": null, "outfile_hash": null, - "stdout": "cpp-expr15-1661c0d.stdout", - "stdout_hash": "d28209d9bf386cdf6847c10fbef3290d494ea1ce8b93822553aa202f", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "cpp-expr15-1661c0d.stderr", + "stderr_hash": "2f6cad3bbcfd98e5c36c938b5d0f4a0f94a7944d1cd4f61114f64719", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/cpp-expr15-1661c0d.stderr b/tests/reference/cpp-expr15-1661c0d.stderr new file mode 100644 index 00000000000..cbf73370e79 --- /dev/null +++ b/tests/reference/cpp-expr15-1661c0d.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/expr15.py:1:1 + | +1 | from lpython import f64, c64, i32, c32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/cpp-expr7-529bd53.json b/tests/reference/cpp-expr7-529bd53.json index d8160eeb318..2b04dfbe590 100644 --- a/tests/reference/cpp-expr7-529bd53.json +++ b/tests/reference/cpp-expr7-529bd53.json @@ -5,9 +5,9 @@ "infile_hash": "7ef1383d1798621ee35adb7296bfe66dcdc08a21ac8dc86b9ce42878", "outfile": null, "outfile_hash": null, - "stdout": "cpp-expr7-529bd53.stdout", - "stdout_hash": "7a50a24ef20fff9e4cc2e5a140e0bbaf6adfb50a4bd59506b4b5a282", + "stdout": null, + "stdout_hash": null, "stderr": "cpp-expr7-529bd53.stderr", - "stderr_hash": "6e9790ac88db1a9ead8f64a91ba8a6605de67167037908a74b77be0c", - "returncode": 0 + "stderr_hash": "c67c8600e360cd936ea6cba0344bc707bec2c114bb76e9cf5d6fafcf", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/cpp-expr7-529bd53.stderr b/tests/reference/cpp-expr7-529bd53.stderr index a4fad29beb7..32d74a9b012 100644 --- a/tests/reference/cpp-expr7-529bd53.stderr +++ b/tests/reference/cpp-expr7-529bd53.stderr @@ -1,11 +1,5 @@ -style suggestion: Could have used '**' instead of 'pow' - --> tests/expr7.py:4:13 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/expr7.py:1:1 | -4 | a = i32(pow(2, 2)) - | ^^^^^^^^^ '**' could be used instead - -style suggestion: Could have used '**' instead of 'pow' - --> tests/expr7.py:8:15 - | -8 | res = i32(pow(a, b)) - | ^^^^^^^^^ '**' could be used instead +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/cpp-expr8-704cece.json b/tests/reference/cpp-expr8-704cece.json index ca9b68ff9db..bf0f100c9b5 100644 --- a/tests/reference/cpp-expr8-704cece.json +++ b/tests/reference/cpp-expr8-704cece.json @@ -5,9 +5,9 @@ "infile_hash": "6966e19cf343700cbc11ec1bf6a495e43c685c6fa065669875aa61ce", "outfile": null, "outfile_hash": null, - "stdout": "cpp-expr8-704cece.stdout", - "stdout_hash": "7b462e24b8799e255f9c12dd05f4fe8a15806e20277426c325c663cf", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "cpp-expr8-704cece.stderr", + "stderr_hash": "fa29839d2eb26468f5fd39398d10785b7734ae62730994f5b4be7321", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/cpp-expr8-704cece.stderr b/tests/reference/cpp-expr8-704cece.stderr new file mode 100644 index 00000000000..05041a92945 --- /dev/null +++ b/tests/reference/cpp-expr8-704cece.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/expr8.py:1:1 + | +1 | from lpython import i32, f32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/cpp-expr_11-422c839.json b/tests/reference/cpp-expr_11-422c839.json index 14c97d1fe3b..3fc15c0aaaf 100644 --- a/tests/reference/cpp-expr_11-422c839.json +++ b/tests/reference/cpp-expr_11-422c839.json @@ -5,9 +5,9 @@ "infile_hash": "d5027dd0f515c653c66202e02cc961bfbe09e628e069ce57b5f5ffe2", "outfile": null, "outfile_hash": null, - "stdout": "cpp-expr_11-422c839.stdout", - "stdout_hash": "acaa852fe5ec3dce238d01e98d0e1fe72854f814f216244b20d297c7", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "cpp-expr_11-422c839.stderr", + "stderr_hash": "db92f8e6428b3cc76f4063ea9bdc8c646174a5d35d1ba337eb40177a", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/cpp-expr_11-422c839.stderr b/tests/reference/cpp-expr_11-422c839.stderr new file mode 100644 index 00000000000..79d0d605485 --- /dev/null +++ b/tests/reference/cpp-expr_11-422c839.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/expr_11.py:1:1 + | +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/cpp-loop1-0a8cf3b.json b/tests/reference/cpp-loop1-0a8cf3b.json index 2b5f8a2bfbc..d047607061d 100644 --- a/tests/reference/cpp-loop1-0a8cf3b.json +++ b/tests/reference/cpp-loop1-0a8cf3b.json @@ -5,9 +5,9 @@ "infile_hash": "324b018f29f7dffbd326e77b7ff9b6a9286837d573ed28f9d86e0311", "outfile": null, "outfile_hash": null, - "stdout": "cpp-loop1-0a8cf3b.stdout", - "stdout_hash": "a9bca4553e1fa7d19f6a6c8625a6cb286ea3237a00c8f89b15698e02", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "cpp-loop1-0a8cf3b.stderr", + "stderr_hash": "9ee33f8803ca783ebf8774e39cc13ae2d20c69d1d0afdba015139024", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/cpp-loop1-0a8cf3b.stderr b/tests/reference/cpp-loop1-0a8cf3b.stderr new file mode 100644 index 00000000000..aac63617f7c --- /dev/null +++ b/tests/reference/cpp-loop1-0a8cf3b.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/loop1.py:1:1 + | +1 | from lpython import i32, i64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/cpp-loop2-0686fc4.json b/tests/reference/cpp-loop2-0686fc4.json index 9f39da5ee59..0e99a16cc0f 100644 --- a/tests/reference/cpp-loop2-0686fc4.json +++ b/tests/reference/cpp-loop2-0686fc4.json @@ -5,9 +5,9 @@ "infile_hash": "7946c522ceb16f99810780d4aba7fa2593695a4b49fb35ea1f131f53", "outfile": null, "outfile_hash": null, - "stdout": "cpp-loop2-0686fc4.stdout", - "stdout_hash": "1cb26a16bf52329e023b6b903e2d280d402ec6963da181cdd3505718", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "cpp-loop2-0686fc4.stderr", + "stderr_hash": "10b4e577b95a49a098472b89e17483c208f5b5fca5eb7c5d4102d3cc", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/cpp-loop2-0686fc4.stderr b/tests/reference/cpp-loop2-0686fc4.stderr new file mode 100644 index 00000000000..460b66d9d3c --- /dev/null +++ b/tests/reference/cpp-loop2-0686fc4.stderr @@ -0,0 +1,11 @@ +warning: The module 'sys' located in $DIR\src\bin/../runtime/sys.py cannot be loaded + --> tests/loop2.py:1:1 + | +1 | from sys import exit + | ^^^^^^^^^^^^^^^^^^^^ imported here + +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> $DIR\src\bin/../runtime/sys.py:1:1 + | +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/cpp-test_builtin_pow-56b3f92.json b/tests/reference/cpp-test_builtin_pow-56b3f92.json index d0cc1a7986c..67dec8adb64 100644 --- a/tests/reference/cpp-test_builtin_pow-56b3f92.json +++ b/tests/reference/cpp-test_builtin_pow-56b3f92.json @@ -5,9 +5,9 @@ "infile_hash": "b7d1d5e1592f5078961eb228c756e424d394f5f0383a1577f1cced1b", "outfile": null, "outfile_hash": null, - "stdout": "cpp-test_builtin_pow-56b3f92.stdout", - "stdout_hash": "4bbf8f398f8066ced3f4fbfb4bf8cbed62743c6f07a12bb96455131b", + "stdout": null, + "stdout_hash": null, "stderr": "cpp-test_builtin_pow-56b3f92.stderr", - "stderr_hash": "859ce76c74748f2d32c7eab92cfbba789a78d4cbf5818646b99806ea", - "returncode": 0 + "stderr_hash": "20c22f0ed975164a0e267ccfbf1806a2b62f800cfb5aeb2cb33337a1", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/cpp-test_builtin_pow-56b3f92.stderr b/tests/reference/cpp-test_builtin_pow-56b3f92.stderr index 5dbb75ad245..2ee53bfd706 100644 --- a/tests/reference/cpp-test_builtin_pow-56b3f92.stderr +++ b/tests/reference/cpp-test_builtin_pow-56b3f92.stderr @@ -1,5 +1,5 @@ -style suggestion: Could have used '**' instead of 'pow' - --> tests/../integration_tests/test_builtin_pow.py:11:16 - | -11 | assert i32(pow(a, b)) == 32 - | ^^^^^^^^^ '**' could be used instead +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_builtin_pow.py:1:1 + | +1 | from lpython import i32, i64, f32, f64, c32 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/cpp-test_integer_bitnot-20195fd.json b/tests/reference/cpp-test_integer_bitnot-20195fd.json index f7e5ac26d25..834be648b8f 100644 --- a/tests/reference/cpp-test_integer_bitnot-20195fd.json +++ b/tests/reference/cpp-test_integer_bitnot-20195fd.json @@ -5,9 +5,9 @@ "infile_hash": "ce63509c56eb6c68ca6d64cc2a195644f3d2fc285f3ec8865551eff5", "outfile": null, "outfile_hash": null, - "stdout": "cpp-test_integer_bitnot-20195fd.stdout", - "stdout_hash": "48b5d7305b106351301408a544f22089e27a6e819f8440ce71e7078d", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "cpp-test_integer_bitnot-20195fd.stderr", + "stderr_hash": "133e212aad49624f698bcdadba7619b3002e4cc0fced0cd66b34b7e4", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/cpp-test_integer_bitnot-20195fd.stderr b/tests/reference/cpp-test_integer_bitnot-20195fd.stderr new file mode 100644 index 00000000000..427aca8df4d --- /dev/null +++ b/tests/reference/cpp-test_integer_bitnot-20195fd.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_integer_bitnot.py:1:1 + | +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/llvm-bindc_01-c984f09.json b/tests/reference/llvm-bindc_01-c984f09.json index 9746b5047d6..3843ff93ace 100644 --- a/tests/reference/llvm-bindc_01-c984f09.json +++ b/tests/reference/llvm-bindc_01-c984f09.json @@ -5,9 +5,9 @@ "infile_hash": "f628ce81b32f2730f936232bb235f39d4372912bc332f3c97e983ad7", "outfile": null, "outfile_hash": null, - "stdout": "llvm-bindc_01-c984f09.stdout", - "stdout_hash": "7e1b82f490b9a95ea81f4754694a725b89f16080d738e77e35462e9f", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "llvm-bindc_01-c984f09.stderr", + "stderr_hash": "9f13d106ce485a3fe83faf2279995d0891378caa2e38335033e4df08", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/llvm-bindc_01-c984f09.stderr b/tests/reference/llvm-bindc_01-c984f09.stderr new file mode 100644 index 00000000000..95b30393e89 --- /dev/null +++ b/tests/reference/llvm-bindc_01-c984f09.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/bindc_01.py:1:1 + | +1 | from lpython import c_p_pointer, CPtr, i16, Pointer, empty_c_void_p + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/llvm-func_inline_01-2d4583a.json b/tests/reference/llvm-func_inline_01-2d4583a.json index 09ed72fa67e..d5e5e593114 100644 --- a/tests/reference/llvm-func_inline_01-2d4583a.json +++ b/tests/reference/llvm-func_inline_01-2d4583a.json @@ -5,9 +5,9 @@ "infile_hash": "65a2e9a9bc7ad68a5e104549eed00cafd02b643a1d91ab2e175b2198", "outfile": null, "outfile_hash": null, - "stdout": "llvm-func_inline_01-2d4583a.stdout", - "stdout_hash": "c81217d13020bbb1017c80dd53885d1b5025254a9d264c30f5b81838", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "llvm-func_inline_01-2d4583a.stderr", + "stderr_hash": "b01ffc0bec4f1fde85450e4652ee7ba31a79682f27900fee8efcf807", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/llvm-func_inline_01-2d4583a.stderr b/tests/reference/llvm-func_inline_01-2d4583a.stderr new file mode 100644 index 00000000000..ba99cb3ed57 --- /dev/null +++ b/tests/reference/llvm-func_inline_01-2d4583a.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/func_inline_01.py:1:1 + | +1 | from lpython import i64 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/llvm-lpython1-23c5987.json b/tests/reference/llvm-lpython1-23c5987.json index e0f02139c95..f6a0680d295 100644 --- a/tests/reference/llvm-lpython1-23c5987.json +++ b/tests/reference/llvm-lpython1-23c5987.json @@ -5,9 +5,9 @@ "infile_hash": "195a467b66705e0f2638aee8c8a6e9145112b2964e05896c328e0d86", "outfile": null, "outfile_hash": null, - "stdout": "llvm-lpython1-23c5987.stdout", - "stdout_hash": "e159629de1a0c099150b091e961cc50a9388c3096ef63bc0d3aa12a1", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "llvm-lpython1-23c5987.stderr", + "stderr_hash": "d3e160633e75c8350e666b3b555c2a29bd6ea6877cb591e5ba260273", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/llvm-lpython1-23c5987.stderr b/tests/reference/llvm-lpython1-23c5987.stderr new file mode 100644 index 00000000000..3d04b1accd1 --- /dev/null +++ b/tests/reference/llvm-lpython1-23c5987.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/lpython1.py:1:1 + | +1 | from lpython import i8, i16, i32, i64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/llvm-print_04-443a8d8.json b/tests/reference/llvm-print_04-443a8d8.json index 9d5ca50ca1c..d54aca96512 100644 --- a/tests/reference/llvm-print_04-443a8d8.json +++ b/tests/reference/llvm-print_04-443a8d8.json @@ -5,9 +5,9 @@ "infile_hash": "88affcdc1013b979debbf8b47a481909670b62c91fc5963af42c2495", "outfile": null, "outfile_hash": null, - "stdout": "llvm-print_04-443a8d8.stdout", - "stdout_hash": "82ed5155deef7a5b597b62a427ca9c33a1dd6650f757223c5c604889", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "llvm-print_04-443a8d8.stderr", + "stderr_hash": "69c0b14ce62f96c6c7b193b0782c05ef24b29bc1fde2b54ecea01996", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/llvm-print_04-443a8d8.stderr b/tests/reference/llvm-print_04-443a8d8.stderr new file mode 100644 index 00000000000..ba77d40c163 --- /dev/null +++ b/tests/reference/llvm-print_04-443a8d8.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/print_04.py:1:1 + | +1 | from lpython import i8, i16, i32, i64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/llvm-test_integer_bitnot-6894b6d.json b/tests/reference/llvm-test_integer_bitnot-6894b6d.json index b85a0d04b24..1cf57fd1852 100644 --- a/tests/reference/llvm-test_integer_bitnot-6894b6d.json +++ b/tests/reference/llvm-test_integer_bitnot-6894b6d.json @@ -5,9 +5,9 @@ "infile_hash": "ce63509c56eb6c68ca6d64cc2a195644f3d2fc285f3ec8865551eff5", "outfile": null, "outfile_hash": null, - "stdout": "llvm-test_integer_bitnot-6894b6d.stdout", - "stdout_hash": "af0bd6b1156e27caa40bf623d0d05a7ce9a3233f03a74d51d154d0b4", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "llvm-test_integer_bitnot-6894b6d.stderr", + "stderr_hash": "133e212aad49624f698bcdadba7619b3002e4cc0fced0cd66b34b7e4", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/llvm-test_integer_bitnot-6894b6d.stderr b/tests/reference/llvm-test_integer_bitnot-6894b6d.stderr new file mode 100644 index 00000000000..427aca8df4d --- /dev/null +++ b/tests/reference/llvm-test_integer_bitnot-6894b6d.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_integer_bitnot.py:1:1 + | +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/llvm-test_issue_518-cdb641a.json b/tests/reference/llvm-test_issue_518-cdb641a.json index 127e89fa418..5eefca420fe 100644 --- a/tests/reference/llvm-test_issue_518-cdb641a.json +++ b/tests/reference/llvm-test_issue_518-cdb641a.json @@ -5,9 +5,9 @@ "infile_hash": "9cf223e018e0affc76044dff23cb75157fbdca458be3ae68871da8db", "outfile": null, "outfile_hash": null, - "stdout": "llvm-test_issue_518-cdb641a.stdout", - "stdout_hash": "0b1d28dc231e531e2d1882f2f0e45c9d5d7017eb197773bcc6b80eec", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "llvm-test_issue_518-cdb641a.stderr", + "stderr_hash": "306dcd7a7ccd040d67cbbc2caff95739ab3c991fe29ebbaafa2df975", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/llvm-test_issue_518-cdb641a.stderr b/tests/reference/llvm-test_issue_518-cdb641a.stderr new file mode 100644 index 00000000000..915f1bd9ff4 --- /dev/null +++ b/tests/reference/llvm-test_issue_518-cdb641a.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/test_issue_518.py:1:1 + | +1 | from lpython import i64 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/pass_inline_function_calls-func_inline_01-8b6a5da.json b/tests/reference/pass_inline_function_calls-func_inline_01-8b6a5da.json index c1d911fae7e..6211642d1d0 100644 --- a/tests/reference/pass_inline_function_calls-func_inline_01-8b6a5da.json +++ b/tests/reference/pass_inline_function_calls-func_inline_01-8b6a5da.json @@ -5,9 +5,9 @@ "infile_hash": "65a2e9a9bc7ad68a5e104549eed00cafd02b643a1d91ab2e175b2198", "outfile": null, "outfile_hash": null, - "stdout": "pass_inline_function_calls-func_inline_01-8b6a5da.stdout", - "stdout_hash": "b2752a79c10f01df25a4ae0293eaf16310b51debc60ba4cc6988892b", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "pass_inline_function_calls-func_inline_01-8b6a5da.stderr", + "stderr_hash": "b01ffc0bec4f1fde85450e4652ee7ba31a79682f27900fee8efcf807", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/pass_inline_function_calls-func_inline_01-8b6a5da.stderr b/tests/reference/pass_inline_function_calls-func_inline_01-8b6a5da.stderr new file mode 100644 index 00000000000..ba99cb3ed57 --- /dev/null +++ b/tests/reference/pass_inline_function_calls-func_inline_01-8b6a5da.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/func_inline_01.py:1:1 + | +1 | from lpython import i64 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/pass_loop_vectorise-vec_01-be9985e.json b/tests/reference/pass_loop_vectorise-vec_01-be9985e.json index 4f1c84297b3..f002552d727 100644 --- a/tests/reference/pass_loop_vectorise-vec_01-be9985e.json +++ b/tests/reference/pass_loop_vectorise-vec_01-be9985e.json @@ -5,9 +5,9 @@ "infile_hash": "ac6691a88207cbc7445095ecc898e9cce9efd9f9e874c473aec70e16", "outfile": null, "outfile_hash": null, - "stdout": "pass_loop_vectorise-vec_01-be9985e.stdout", - "stdout_hash": "bc18e9f41ba307b368c1809aa38dba7dd3d0e810f1bd2e1929a62055", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "pass_loop_vectorise-vec_01-be9985e.stderr", + "stderr_hash": "0c770c1a7817382c2e3c0f217f1f49de3ef0daba8f99393dee0994fc", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/pass_loop_vectorise-vec_01-be9985e.stderr b/tests/reference/pass_loop_vectorise-vec_01-be9985e.stderr new file mode 100644 index 00000000000..298a38182ce --- /dev/null +++ b/tests/reference/pass_loop_vectorise-vec_01-be9985e.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/vec_01.py:1:1 + | +1 | from lpython import f64 + | ^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/pass_print_list_tuple-print_02-09600eb.json b/tests/reference/pass_print_list_tuple-print_02-09600eb.json index 9ec9a442271..34fd4e91f18 100644 --- a/tests/reference/pass_print_list_tuple-print_02-09600eb.json +++ b/tests/reference/pass_print_list_tuple-print_02-09600eb.json @@ -5,9 +5,9 @@ "infile_hash": "c4513f1b2ab1a2f33a0784fe80b4d32b506c05799b0c920c4f5b0411", "outfile": null, "outfile_hash": null, - "stdout": "pass_print_list_tuple-print_02-09600eb.stdout", - "stdout_hash": "a3599b86838c70fe81fcf2efa2605ff645afcd0d21d6af8601ab50ac", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "pass_print_list_tuple-print_02-09600eb.stderr", + "stderr_hash": "471060b489b81a2095d6b4ced676c2644b1bf98adf32f00b8081b9bb", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/pass_print_list_tuple-print_02-09600eb.stderr b/tests/reference/pass_print_list_tuple-print_02-09600eb.stderr new file mode 100644 index 00000000000..e8f59b7faf5 --- /dev/null +++ b/tests/reference/pass_print_list_tuple-print_02-09600eb.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/../integration_tests/print_02.py:1:1 + | +1 | from lpython import i32, f64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/runtime-test_list_01-3ee9b3e.json b/tests/reference/runtime-test_list_01-3ee9b3e.json index 0c845eb4e67..d9b9dd99312 100644 --- a/tests/reference/runtime-test_list_01-3ee9b3e.json +++ b/tests/reference/runtime-test_list_01-3ee9b3e.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "runtime-test_list_01-3ee9b3e.stderr", - "stderr_hash": "c9cbdc4df1e7fbe0a6e73db7ac7809f71102fb524c8aa86139271006", - "returncode": 1 + "stderr_hash": "1a920f2f9ed5e491154f764c21007c61a4b4adcd686493a8e51527bf", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/runtime-test_list_01-3ee9b3e.stderr b/tests/reference/runtime-test_list_01-3ee9b3e.stderr index 86d697f5c2e..10218c73749 100644 --- a/tests/reference/runtime-test_list_01-3ee9b3e.stderr +++ b/tests/reference/runtime-test_list_01-3ee9b3e.stderr @@ -1 +1,5 @@ -ValueError: The list does not contain the element: 4 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/runtime_errors/test_list_01.py:1:1 + | +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^  diff --git a/tests/reference/runtime-test_list_02-5f7db5f.json b/tests/reference/runtime-test_list_02-5f7db5f.json index c4afb880c4d..a981f703277 100644 --- a/tests/reference/runtime-test_list_02-5f7db5f.json +++ b/tests/reference/runtime-test_list_02-5f7db5f.json @@ -8,6 +8,6 @@ "stdout": null, "stdout_hash": null, "stderr": "runtime-test_list_02-5f7db5f.stderr", - "stderr_hash": "f45ba86e610eeb2cc11fc176120e56d153a896f486e9b04d94fa3de1", - "returncode": 1 + "stderr_hash": "b72b6abbd6e95e5dbd5e837c73a9062a25826fd5b686ef4f8692a658", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/runtime-test_list_02-5f7db5f.stderr b/tests/reference/runtime-test_list_02-5f7db5f.stderr index 4f2d5a50c55..6899eccdfdf 100644 --- a/tests/reference/runtime-test_list_02-5f7db5f.stderr +++ b/tests/reference/runtime-test_list_02-5f7db5f.stderr @@ -1 +1,5 @@ -IndexError: List index is out of range. Index range is (0, 2), but the given index is 3 +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/runtime_errors/test_list_02.py:2:1 + | +2 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^  diff --git a/tests/reference/runtime-test_str_01-50bdf2f.json b/tests/reference/runtime-test_str_01-50bdf2f.json index d28f645ecaf..e54bbd35d1a 100644 --- a/tests/reference/runtime-test_str_01-50bdf2f.json +++ b/tests/reference/runtime-test_str_01-50bdf2f.json @@ -5,9 +5,9 @@ "infile_hash": "7fb9748271af03bfa35e190a4514480662f42263ebfa0a6b2e082868", "outfile": null, "outfile_hash": null, - "stdout": "runtime-test_str_01-50bdf2f.stdout", - "stdout_hash": "ae5584858d62f3df08abdd365ea09fed0a7aa75f0f10698a7f7c2508", - "stderr": null, - "stderr_hash": null, - "returncode": 1 + "stdout": null, + "stdout_hash": null, + "stderr": "runtime-test_str_01-50bdf2f.stderr", + "stderr_hash": "364534e6ad1dd8bb2fa0ca25bb1e94fe22965a51d7029bda4627fbb8", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/runtime-test_str_01-50bdf2f.stderr b/tests/reference/runtime-test_str_01-50bdf2f.stderr new file mode 100644 index 00000000000..19e8738a425 --- /dev/null +++ b/tests/reference/runtime-test_str_01-50bdf2f.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/runtime_errors/test_str_01.py:1:1 + | +1 | from lpython import i32 + | ^^^^^^^^^^^^^^^^^^^^^^^  diff --git a/tests/reference/wat-loop1-e0046d4.json b/tests/reference/wat-loop1-e0046d4.json index 27393e95200..bcf70e1bad2 100644 --- a/tests/reference/wat-loop1-e0046d4.json +++ b/tests/reference/wat-loop1-e0046d4.json @@ -5,9 +5,9 @@ "infile_hash": "324b018f29f7dffbd326e77b7ff9b6a9286837d573ed28f9d86e0311", "outfile": null, "outfile_hash": null, - "stdout": "wat-loop1-e0046d4.stdout", - "stdout_hash": "fffdd5e8fec36d87423d61052cc9fefdcce6bd7a6ad36be43b583dac", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "wat-loop1-e0046d4.stderr", + "stderr_hash": "9ee33f8803ca783ebf8774e39cc13ae2d20c69d1d0afdba015139024", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/wat-loop1-e0046d4.stderr b/tests/reference/wat-loop1-e0046d4.stderr new file mode 100644 index 00000000000..aac63617f7c --- /dev/null +++ b/tests/reference/wat-loop1-e0046d4.stderr @@ -0,0 +1,5 @@ +semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it + --> tests/loop1.py:1:1 + | +1 | from lpython import i32, i64 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^