Skip to content

Commit

Permalink
Updated test references
Browse files Browse the repository at this point in the history
  • Loading branch information
harshsingh-24 committed Mar 26, 2023
1 parent 9eb96cb commit b997d2d
Show file tree
Hide file tree
Showing 282 changed files with 1,202 additions and 795 deletions.
10 changes: 5 additions & 5 deletions tests/reference/asr-array_01_decl-39cf894.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
5 changes: 5 additions & 0 deletions tests/reference/asr-array_01_decl-39cf894.stderr
Original file line number Diff line number Diff line change
@@ -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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 changes: 5 additions & 5 deletions tests/reference/asr-array_02_decl-e8f6874.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
5 changes: 5 additions & 0 deletions tests/reference/asr-array_02_decl-e8f6874.stderr
Original file line number Diff line number Diff line change
@@ -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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 changes: 5 additions & 5 deletions tests/reference/asr-assign2-8d1a2ee.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
5 changes: 5 additions & 0 deletions tests/reference/asr-assign2-8d1a2ee.stderr
Original file line number Diff line number Diff line change
@@ -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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 changes: 5 additions & 5 deletions tests/reference/asr-bindc_01-6d521a9.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
5 changes: 5 additions & 0 deletions tests/reference/asr-bindc_01-6d521a9.stderr
Original file line number Diff line number Diff line change
@@ -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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 changes: 1 addition & 1 deletion tests/reference/asr-bindc_01-f761165.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-bindc_01-f761165.stderr",
"stderr_hash": "b2d416fa6afa00923a130cb76dbd580798a9ee0841e34980c531b050",
"stderr_hash": "5d66a4393db4f2c02c1216a8add6f86c8a8eeedfdb4c7ec691b7ffa9",
"returncode": 2
}
11 changes: 4 additions & 7 deletions tests/reference/asr-bindc_01-f761165.stderr
Original file line number Diff line number Diff line change
@@ -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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 changes: 1 addition & 1 deletion tests/reference/asr-bindc_02-5092d8e.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-bindc_02-5092d8e.stderr",
"stderr_hash": "315076027d80c91db75f4ec44ea5cf8d5fd37a499a367f627b6f6553",
"stderr_hash": "572ffa5e16df2a226bf1de862bd9b322365b245db1f76e7842e5d6b7",
"returncode": 2
}
11 changes: 4 additions & 7 deletions tests/reference/asr-bindc_02-5092d8e.stderr
Original file line number Diff line number Diff line change
@@ -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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 changes: 5 additions & 5 deletions tests/reference/asr-bindc_02-bc1a7ea.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
5 changes: 5 additions & 0 deletions tests/reference/asr-bindc_02-bc1a7ea.stderr
Original file line number Diff line number Diff line change
@@ -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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 changes: 1 addition & 1 deletion tests/reference/asr-bindc_03-95dbba7.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-bindc_03-95dbba7.stderr",
"stderr_hash": "cd4fd2d0052b8923fd13ebba841ad7b6d91f28a68604d6ae1aa8ba99",
"stderr_hash": "70f62831a30f919484aca970d89c173cb5b0507b60473acda8d60808",
"returncode": 2
}
10 changes: 5 additions & 5 deletions tests/reference/asr-bindc_03-95dbba7.stderr
Original file line number Diff line number Diff line change
@@ -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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 changes: 5 additions & 5 deletions tests/reference/asr-c_interop1-cf2e9b4.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
5 changes: 5 additions & 0 deletions tests/reference/asr-c_interop1-cf2e9b4.stderr
Original file line number Diff line number Diff line change
@@ -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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 changes: 5 additions & 5 deletions tests/reference/asr-cast-435c233.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
11 changes: 11 additions & 0 deletions tests/reference/asr-cast-435c233.stderr
Original file line number Diff line number Diff line change
@@ -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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 changes: 5 additions & 5 deletions tests/reference/asr-complex1-f26c460.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
5 changes: 5 additions & 0 deletions tests/reference/asr-complex1-f26c460.stderr
Original file line number Diff line number Diff line change
@@ -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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 changes: 1 addition & 1 deletion tests/reference/asr-const_01-af8289b.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-const_01-af8289b.stderr",
"stderr_hash": "f47e74e916315ec82f38680f66c9cf5ef3c958bcdfa87b9efe09b264",
"stderr_hash": "d5332be7b5e24c84285afdb85684100451048056fec3d4c71d3d0cd6",
"returncode": 2
}
8 changes: 4 additions & 4 deletions tests/reference/asr-const_01-af8289b.stderr
Original file line number Diff line number Diff line change
@@ -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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 changes: 1 addition & 1 deletion tests/reference/asr-const_02-fce29b7.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-const_02-fce29b7.stderr",
"stderr_hash": "b8b90da28518edbe487dbe6f52f1f25f004042fe463e8fba7b96d174",
"stderr_hash": "b0e2305b90a909910f7ca31539a7265c5c84c89e7a0fa0646e7fcbd0",
"returncode": 2
}
8 changes: 4 additions & 4 deletions tests/reference/asr-const_02-fce29b7.stderr
Original file line number Diff line number Diff line change
@@ -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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 changes: 5 additions & 5 deletions tests/reference/asr-constants1-5828e8a.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
5 changes: 5 additions & 0 deletions tests/reference/asr-constants1-5828e8a.stderr
Original file line number Diff line number Diff line change
@@ -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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 changes: 1 addition & 1 deletion tests/reference/asr-cptr_01-4e660f1.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-cptr_01-4e660f1.stderr",
"stderr_hash": "0477f93b29ff4932b3471a59731a173fb19d6e44273236829eeaffbe",
"stderr_hash": "758ccc9ce910f35cb3d0d3cdfc0957518cc69d29c5f6de0880e2a390",
"returncode": 2
}
8 changes: 4 additions & 4 deletions tests/reference/asr-cptr_01-4e660f1.stderr
Original file line number Diff line number Diff line change
@@ -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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 changes: 5 additions & 5 deletions tests/reference/asr-doconcurrentloop_01-3fdc189.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
5 changes: 5 additions & 0 deletions tests/reference/asr-doconcurrentloop_01-3fdc189.stderr
Original file line number Diff line number Diff line change
@@ -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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 changes: 5 additions & 5 deletions tests/reference/asr-elemental_01-b58df26.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
5 changes: 5 additions & 0 deletions tests/reference/asr-elemental_01-b58df26.stderr
Original file line number Diff line number Diff line change
@@ -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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 changes: 1 addition & 1 deletion tests/reference/asr-enum_01-30e1b4a.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-enum_01-30e1b4a.stderr",
"stderr_hash": "ee3775d6e144fa8c18d4beeae5a5790e317f7c4d26212100d03f29d4",
"stderr_hash": "e9f3f7d354f4c517857d370e3b1760ac6c3a1ee99e4b05f0d18a1cf4",
"returncode": 2
}
12 changes: 4 additions & 8 deletions tests/reference/asr-enum_01-30e1b4a.stderr
Original file line number Diff line number Diff line change
@@ -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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Loading

0 comments on commit b997d2d

Please sign in to comment.