Skip to content

Commit

Permalink
Update reference tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Agent-Hellboy committed Oct 8, 2023
1 parent f40f524 commit a468227
Show file tree
Hide file tree
Showing 40 changed files with 155 additions and 173 deletions.
8 changes: 0 additions & 8 deletions tests/reference/asr-array_01_decl-39cf894.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,9 @@
"infile_hash": "3dff59bab7475d254ce0470065c11e797e52a5b2a3d7546acc0e6705",
"outfile": null,
"outfile_hash": null,
<<<<<<< HEAD
"stdout": null,
"stdout_hash": null,
"stderr": "asr-array_01_decl-39cf894.stderr",
"stderr_hash": "5155e10cd4958bdda66178e2ed1b6faed6f415ff1cf3ff78e45f9cbb",
"returncode": 2
=======
"stdout": "asr-array_01_decl-39cf894.stdout",
"stdout_hash": "24b1d1f4774489a87a82c51c4f4a797ca363f7efdb011e42936fc6b9",
"stderr": null,
"stderr_hash": null,
"returncode": 0
>>>>>>> main
}
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": "9a398864499c7a3b4e2a480faf3a5dccaa65f9771a8de27f55f11ca4",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-array_02_decl-e8f6874.stdout",
"stdout_hash": "a442d1685188ae1ac93a98e1c9d15aa8c9eb53cf7ef9d926911d941c",
"stderr": null,
"stderr_hash": null,
"returncode": 0
"stdout": null,
"stdout_hash": null,
"stderr": "asr-array_02_decl-e8f6874.stderr",
"stderr_hash": "b9fd331511456947bef74d5df2f292244e7fa1861ab43918a6e02acd",
"returncode": 2
}
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": "a29f0f269c494419077ca8725e7c2d2dc7a5b4964d5c909347f1caa4",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-bindc_02-bc1a7ea.stdout",
"stdout_hash": "01a64e5f6cf42ede674e82e44dae47760b77e108155c498d63ad4638",
"stderr": null,
"stderr_hash": null,
"returncode": 0
"stdout": null,
"stdout_hash": null,
"stderr": "asr-bindc_02-bc1a7ea.stderr",
"stderr_hash": "f35a1e2233396c7620436bb77c9e617e33e60fb9c92da2552280ed2c",
"returncode": 2
}
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": "1d616232829e2d73cf1f82681176b8f5e82ae5159e9bc3b39794a33f",
"stderr": null,
"stderr_hash": null,
"returncode": 0
"stdout": null,
"stdout_hash": null,
"stderr": "asr-cast-435c233.stderr",
"stderr_hash": "94b3ddb64aab37aa358cd260252df21698826606401d00e07c873603",
"returncode": 2
}
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": "8c3db4b88ed74a020b6a0ed76f47a65c3da89b2e0756dd260de0a9fb",
"stderr": null,
"stderr_hash": null,
"returncode": 0
"stdout": null,
"stdout_hash": null,
"stderr": "asr-complex1-f26c460.stderr",
"stderr_hash": "850f4cbe87b0a7ae8138fbfb71f94b82843abf09e50752159f900292",
"returncode": 2
}
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": "5dca391c30a1477fb903e17c1d47dad3b9b816088384ba61ff372db1",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-constants1-5828e8a.stdout",
"stdout_hash": "8ad517b1fb9537e903479b813ed839f72c36608a890401e78187eaa1",
"stderr": null,
"stderr_hash": null,
"returncode": 0
"stdout": null,
"stdout_hash": null,
"stderr": "asr-constants1-5828e8a.stderr",
"stderr_hash": "ebf1574a4c5a5194ffa967d7e3a768aad6fe823a3eae7b48b0ea46f2",
"returncode": 2
}
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": "1d1eb8ce26df5817c1e474e4f69b0b96e53df362a31f1b722efaadf0",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-elemental_01-b58df26.stdout",
"stdout_hash": "71cc6bc6a596fd628bad7572f8636622ef932ac2098ed3776f77099e",
"stderr": null,
"stderr_hash": null,
"returncode": 0
"stdout": null,
"stdout_hash": null,
"stderr": "asr-elemental_01-b58df26.stderr",
"stderr_hash": "cd10f41e485a55b944782ec55b168ba07907570bc9c92869d02f705e",
"returncode": 2
}
10 changes: 5 additions & 5 deletions tests/reference/asr-expr10-efcbb1b.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"infile_hash": "7eb1dd6ad27fcc091e18c4447fb7a56c659565bbdb57f567b68f4a58",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-expr10-efcbb1b.stdout",
"stdout_hash": "888daca8b770c13848943f1e1da7d63d29ce81e4beeaf050a042f7d4",
"stderr": null,
"stderr_hash": null,
"returncode": 0
"stdout": null,
"stdout_hash": null,
"stderr": "asr-expr10-efcbb1b.stderr",
"stderr_hash": "32b0a64a7d73278b8d793b2991e8550827128c4df7fd48bc82d20311",
"returncode": 2
}
10 changes: 5 additions & 5 deletions tests/reference/asr-expr13-81bdb5a.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"infile_hash": "fae72924c71183c45d328b379dfa81aa4971b5e1a9ea668db546078f",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-expr13-81bdb5a.stdout",
"stdout_hash": "c07ed7eef3224ca374248cf1a964efd0159266de0351db244cc65639",
"stderr": null,
"stderr_hash": null,
"returncode": 0
"stdout": null,
"stdout_hash": null,
"stderr": "asr-expr13-81bdb5a.stderr",
"stderr_hash": "0699d234dbdd85c470cbdb001dd7447b9419e96ce3aafa7642a9edc3",
"returncode": 2
}
4 changes: 2 additions & 2 deletions tests/reference/asr-expr7-480ba2f.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"infile_hash": "7ef1383d1798621ee35adb7296bfe66dcdc08a21ac8dc86b9ce42878",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-expr7-480ba2f.stdout",
"stdout_hash": "f2a3f371604ed6cb8460758126475e5d6bd7c6d1bee5c36b8df66162",
"stdout": null,
"stdout_hash": null,
"stderr": "asr-expr7-480ba2f.stderr",
"stderr_hash": "4d93a6488abad28138f2713c11c47b2f02e87e530f1bf6e2e38e88bf",
"returncode": 2
Expand Down
10 changes: 5 additions & 5 deletions tests/reference/asr-expr8-6beda60.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"infile_hash": "6966e19cf343700cbc11ec1bf6a495e43c685c6fa065669875aa61ce",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-expr8-6beda60.stdout",
"stdout_hash": "b79ac7dd790182c720f71316cdcedbd0a6b3b1bd56ef5cb800fab8dd",
"stderr": null,
"stderr_hash": null,
"returncode": 0
"stdout": null,
"stdout_hash": null,
"stderr": "asr-expr8-6beda60.stderr",
"stderr_hash": "94db9a9e4af4eda9b774a82fb4f55aa3413db82da5be0160bde72352",
"returncode": 2
}
10 changes: 5 additions & 5 deletions tests/reference/asr-expr_05-3a37324.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"infile_hash": "cc922bec30fac0a8eb10efd99f72234aa5638b3c9cd92c68044c69ea",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-expr_05-3a37324.stdout",
"stdout_hash": "88a4e64ce40edc1bb143c2540b877787c0e123da28609e0e129c3b84",
"stderr": null,
"stderr_hash": null,
"returncode": 0
"stdout": null,
"stdout_hash": null,
"stderr": "asr-expr_05-3a37324.stderr",
"stderr_hash": "ec167ccde0bcc3539244c081abc86809b00655e649722a96f082d86b",
"returncode": 2
}
10 changes: 5 additions & 5 deletions tests/reference/asr-generics_array_01-682b1b2.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"infile_hash": "6e943dd0e26ab4d1ffb6ed6909a365b4135b6f5295957b2478cfb479",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-generics_array_01-682b1b2.stdout",
"stdout_hash": "03c8c6575d2998c550eb112986451ceea6f8f94324e9fe33a8999fc5",
"stderr": null,
"stderr_hash": null,
"returncode": 0
"stdout": null,
"stdout_hash": null,
"stderr": "asr-generics_array_01-682b1b2.stderr",
"stderr_hash": "07809b586ef30105878e1532461ac0ad302722003d44d2ae71b4cb7a",
"returncode": 2
}
10 changes: 5 additions & 5 deletions tests/reference/asr-generics_array_02-22c8dc1.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"infile_hash": "54b5f1d4b8fc7543c292ac0d6f7a39939816a657173937fa7dc02f07",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-generics_array_02-22c8dc1.stdout",
"stdout_hash": "6060b35873ff8fc00781889af581731a8c7cb148d2423dfef06bc14a",
"stderr": null,
"stderr_hash": null,
"returncode": 0
"stdout": null,
"stdout_hash": null,
"stderr": "asr-generics_array_02-22c8dc1.stderr",
"stderr_hash": "ab2cfe57f54581e673039761ff5a42919ddb665b1083a36342cbe7e1",
"returncode": 2
}
10 changes: 5 additions & 5 deletions tests/reference/asr-generics_array_03-fb3706c.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"infile_hash": "5b415ae64a527ce3ab3b6878141238e227258bc2b2b8c37af6d23ff5",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-generics_array_03-fb3706c.stdout",
"stdout_hash": "39ded0e74b830a48eddb106954df6ac01c167e2517a188d8baf246ca",
"stderr": null,
"stderr_hash": null,
"returncode": 0
"stdout": null,
"stdout_hash": null,
"stderr": "asr-generics_array_03-fb3706c.stderr",
"stderr_hash": "7d636bddcd76853697423eb36c823f5898b8274b21a62a55f764b63b",
"returncode": 2
}
2 changes: 1 addition & 1 deletion tests/reference/asr-string_02-499c9ff.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-string_02-499c9ff.stderr",
"stderr_hash": "368ba74a1e0d6609f71e6f87f95bd0b6151420c81336e48a172cb613",
"stderr_hash": "85593e60baa6c6f930b7486a92e41fac9943108966abdacb7acb39ef",
"returncode": 2
}
10 changes: 8 additions & 2 deletions tests/reference/asr-string_02-499c9ff.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
semantic error: str.join() takes type list only
warning: The module 'lpython_builtin' located in $DIR/src/bin/../runtime/lpython_builtin.py cannot be loaded
--> tests/errors/string_02.py:6:15
|
6 | res:str = x.join(p)
| ^^^^^^^^^
| ^^^^^^^^^ imported here

semantic error: The symbol '_lpython_floordiv' not found in the module 'lpython_builtin'
--> $DIR/src/bin/../runtime/lpython_builtin.py:209:15
|
209 | if (n_ - (n_ // 2)*2) == 0:
| ^^^^^^^
8 changes: 0 additions & 8 deletions tests/reference/asr-structs_05-fa98307.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,9 @@
"infile_hash": "ef1037b0936a63be679efd366920a94463900e80630a070ba440aa78",
"outfile": null,
"outfile_hash": null,
<<<<<<< HEAD
"stdout": null,
"stdout_hash": null,
"stderr": "asr-structs_05-fa98307.stderr",
"stderr_hash": "9425960bac284eae21adb4274aa833960c505abd6bd546f896da0216",
"returncode": 2
=======
"stdout": "asr-structs_05-fa98307.stdout",
"stdout_hash": "3f7e68ccebad6bea7e857ff10c72bf579bd9620b47635d9eeff31a46",
"stderr": null,
"stderr_hash": null,
"returncode": 0
>>>>>>> main
}
8 changes: 0 additions & 8 deletions tests/reference/asr-test_bool_binop-f856ef0.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,9 @@
"infile_hash": "7c44fe2915b3871b3b85edf3ab129d87a75fa4b9acbb597ae801daf9",
"outfile": null,
"outfile_hash": null,
<<<<<<< HEAD
"stdout": null,
"stdout_hash": null,
"stderr": "asr-test_bool_binop-f856ef0.stderr",
"stderr_hash": "7e1f44ed79212fae132aca28b495a511f27ee327b9bf88b797502eff",
"returncode": 2
=======
"stdout": "asr-test_bool_binop-f856ef0.stdout",
"stdout_hash": "b2d6b1205576cabc7c44ae611eec55ba5af026dbd918972e05e8f7da",
"stderr": null,
"stderr_hash": null,
"returncode": 0
>>>>>>> main
}
10 changes: 5 additions & 5 deletions tests/reference/asr-test_builtin_bin-52ba9fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"infile_hash": "09e09eacf697c95f358b75f6491b766781bae9a5f856c2ad5848e824",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-test_builtin_bin-52ba9fa.stdout",
"stdout_hash": "b3d1005ae778682be163f4a836405735b4521430ea2d26bfc49cae12",
"stderr": null,
"stderr_hash": null,
"returncode": 0
"stdout": null,
"stdout_hash": null,
"stderr": "asr-test_builtin_bin-52ba9fa.stderr",
"stderr_hash": "f96ee9f35d47046bca3a9f0e40b965bf1b0e6654a0a4da0eb7a85e30",
"returncode": 2
}
10 changes: 5 additions & 5 deletions tests/reference/asr-test_builtin_bool-330223a.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"infile_hash": "3a740faba0e36b55c179ab0fa08486dc3080332e79c8e38b8f25b4a4",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-test_builtin_bool-330223a.stdout",
"stdout_hash": "3752d25de1c20fd790217573771973e3af84ffbb1bdcd345099029e3",
"stderr": null,
"stderr_hash": null,
"returncode": 0
"stdout": null,
"stdout_hash": null,
"stderr": "asr-test_builtin_bool-330223a.stderr",
"stderr_hash": "5cf42029c7abd7dc2dedc535fff29c622c3871ec342b595c426b27f3",
"returncode": 2
}
10 changes: 5 additions & 5 deletions tests/reference/asr-test_builtin_hex-64bd268.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"infile_hash": "e639f0251477f50376536d317630e3c026354859576a5f1b7b10bd7d",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-test_builtin_hex-64bd268.stdout",
"stdout_hash": "3ee188d377c463b59225031d3d1f0bf9384d91a8eef9c203f829fd30",
"stderr": null,
"stderr_hash": null,
"returncode": 0
"stdout": null,
"stdout_hash": null,
"stderr": "asr-test_builtin_hex-64bd268.stderr",
"stderr_hash": "22b2ae7d0d34d2406125547149511ab5990a5f2163c186c48c5c4f05",
"returncode": 2
}
10 changes: 5 additions & 5 deletions tests/reference/asr-test_builtin_oct-20b9066.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"infile_hash": "c20249affa4787edf4ef56c881ebbcabdced311b5b908d9da6aceaeb",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-test_builtin_oct-20b9066.stdout",
"stdout_hash": "1032b2d04f48ec8a0bba1b13fbfe6764465b44b90e51702d9d098ce0",
"stderr": null,
"stderr_hash": null,
"returncode": 0
"stdout": null,
"stdout_hash": null,
"stderr": "asr-test_builtin_oct-20b9066.stderr",
"stderr_hash": "986b90db11399243e0e1a9788da3876cbd8d7eecd273e46bc9437243",
"returncode": 2
}
4 changes: 2 additions & 2 deletions tests/reference/asr-test_builtin_pow-f02fcda.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"infile_hash": "b7d1d5e1592f5078961eb228c756e424d394f5f0383a1577f1cced1b",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-test_builtin_pow-f02fcda.stdout",
"stdout_hash": "a7d94321eaec571a74e7b6c52bd9f200e814ae6511e4425f7363908e",
"stdout": null,
"stdout_hash": null,
"stderr": "asr-test_builtin_pow-f02fcda.stderr",
"stderr_hash": "6935bb3dd01caf67154e6dee0bb6480b2d3ecb270bc5038444391acc",
"returncode": 2
Expand Down
10 changes: 5 additions & 5 deletions tests/reference/asr-test_builtin_round-7417a21.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"infile_hash": "a4ff4032a45ce084eb524069046afb6ec44f1b24a667c84c7605f2c7",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-test_builtin_round-7417a21.stdout",
"stdout_hash": "efced280509a5f5e7b5e8197234ba1bf4bab25aba561082257bf31bc",
"stderr": null,
"stderr_hash": null,
"returncode": 0
"stdout": null,
"stdout_hash": null,
"stderr": "asr-test_builtin_round-7417a21.stderr",
"stderr_hash": "a58af3b9f4312b1036b728dc70928fe9c05f87d1b96d92b5c3da881f",
"returncode": 2
}
Loading

0 comments on commit a468227

Please sign in to comment.