Skip to content

Commit

Permalink
TEST: Updated reference tests
Browse files Browse the repository at this point in the history
  • Loading branch information
czgdp1807 committed Mar 26, 2024
1 parent e32ae29 commit ff554ef
Show file tree
Hide file tree
Showing 511 changed files with 2,828 additions and 2,071 deletions.
2 changes: 1 addition & 1 deletion tests/reference/asr-array_01_decl-39cf894.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"outfile": null,
"outfile_hash": null,
"stdout": "asr-array_01_decl-39cf894.stdout",
"stdout_hash": "f14010ffcf7d42b89e54c88ebecc7ca51d67b204825e07f4f708875e",
"stdout_hash": "34c5f9983e43e6b5c65f021792e415f0c2e4fe5135c6435eb5322719",
"stderr": null,
"stderr_hash": null,
"returncode": 0
Expand Down
55 changes: 31 additions & 24 deletions tests/reference/asr-array_01_decl-39cf894.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
)
[]
[(Var 224 xf32)]
[(=
[(Assignment
(ArrayItem
(Var 224 xf32)
[(()
Expand All @@ -180,7 +180,7 @@
)
()
)
(=
(Assignment
(Var 224 _lpython_return_variable)
(ArrayItem
(Var 224 xf32)
Expand Down Expand Up @@ -265,7 +265,7 @@
)
[]
[(Var 225 xf64)]
[(=
[(Assignment
(ArrayItem
(Var 225 xf64)
[(()
Expand All @@ -281,7 +281,7 @@
)
()
)
(=
(Assignment
(Var 225 _lpython_return_variable)
(ArrayItem
(Var 225 xf64)
Expand Down Expand Up @@ -366,7 +366,7 @@
)
[]
[(Var 221 xi16)]
[(=
[(Assignment
(ArrayItem
(Var 221 xi16)
[(()
Expand All @@ -384,7 +384,7 @@
)
()
)
(=
(Assignment
(Var 221 _lpython_return_variable)
(ArrayItem
(Var 221 xi16)
Expand Down Expand Up @@ -469,7 +469,7 @@
)
[]
[(Var 222 xi32)]
[(=
[(Assignment
(ArrayItem
(Var 222 xi32)
[(()
Expand All @@ -482,7 +482,7 @@
(IntegerConstant 32 (Integer 4))
()
)
(=
(Assignment
(Var 222 _lpython_return_variable)
(ArrayItem
(Var 222 xi32)
Expand Down Expand Up @@ -567,7 +567,7 @@
)
[]
[(Var 223 xi64)]
[(=
[(Assignment
(ArrayItem
(Var 223 xi64)
[(()
Expand All @@ -585,7 +585,7 @@
)
()
)
(=
(Assignment
(Var 223 _lpython_return_variable)
(ArrayItem
(Var 223 xi64)
Expand Down Expand Up @@ -779,100 +779,107 @@
accept_f32_array
accept_f64_array]
[]
[(=
[(Assignment
(Var 226 ai16)
(ArrayConstant
(ArrayConstructor
[]
(Array
(Integer 2)
[((IntegerConstant 0 (Integer 4))
(IntegerConstant 3 (Integer 4)))]
FixedSizeArray
)
()
RowMajor
)
()
)
(=
(Assignment
(Var 226 ai32)
(ArrayConstant
(ArrayConstructor
[]
(Array
(Integer 4)
[((IntegerConstant 0 (Integer 4))
(IntegerConstant 3 (Integer 4)))]
FixedSizeArray
)
()
RowMajor
)
()
)
(=
(Assignment
(Var 226 ai64)
(ArrayConstant
(ArrayConstructor
[]
(Array
(Integer 8)
[((IntegerConstant 0 (Integer 4))
(IntegerConstant 10 (Integer 4)))]
FixedSizeArray
)
()
RowMajor
)
()
)
(=
(Assignment
(Var 226 af32)
(ArrayConstant
(ArrayConstructor
[]
(Array
(Real 4)
[((IntegerConstant 0 (Integer 4))
(IntegerConstant 3 (Integer 4)))]
FixedSizeArray
)
()
RowMajor
)
()
)
(=
(Assignment
(Var 226 af64)
(ArrayConstant
(ArrayConstructor
[]
(Array
(Real 8)
[((IntegerConstant 0 (Integer 4))
(IntegerConstant 10 (Integer 4)))]
FixedSizeArray
)
()
RowMajor
)
()
)
(=
(Assignment
(Var 226 ac32)
(ArrayConstant
(ArrayConstructor
[]
(Array
(Complex 4)
[((IntegerConstant 0 (Integer 4))
(IntegerConstant 3 (Integer 4)))]
FixedSizeArray
)
()
RowMajor
)
()
)
(=
(Assignment
(Var 226 ac64)
(ArrayConstant
(ArrayConstructor
[]
(Array
(Complex 8)
[((IntegerConstant 0 (Integer 4))
(IntegerConstant 10 (Integer 4)))]
FixedSizeArray
)
()
RowMajor
)
()
Expand Down
2 changes: 1 addition & 1 deletion tests/reference/asr-array_02_decl-e8f6874.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"outfile": null,
"outfile_hash": null,
"stdout": "asr-array_02_decl-e8f6874.stdout",
"stdout_hash": "5279aef41f63f0cd241fff1b853b3186a3d83a32905264b64b66705c",
"stdout_hash": "16f1a4388b7117f7ce6886ac48749fe533265ee12949b513a9317eba",
"stderr": null,
"stderr_hash": null,
"returncode": 0
Expand Down
38 changes: 22 additions & 16 deletions tests/reference/asr-array_02_decl-e8f6874.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
)
[]
[(Var 222 xf32)]
[(=
[(Assignment
(Var 222 _lpython_return_variable)
(ArrayItem
(Var 222 xf32)
Expand Down Expand Up @@ -197,7 +197,7 @@
)
[]
[(Var 223 xf64)]
[(=
[(Assignment
(Var 223 _lpython_return_variable)
(ArrayItem
(Var 223 xf64)
Expand Down Expand Up @@ -289,7 +289,7 @@
)
[]
[(Var 220 xi32)]
[(=
[(Assignment
(Var 220 _lpython_return_variable)
(ArrayItem
(Var 220 xi32)
Expand Down Expand Up @@ -385,7 +385,7 @@
)
[]
[(Var 221 xi64)]
[(=
[(Assignment
(Var 221 _lpython_return_variable)
(ArrayItem
(Var 221 xi64)
Expand Down Expand Up @@ -581,9 +581,9 @@
accept_multidim_f32_array
accept_multidim_f64_array]
[]
[(=
[(Assignment
(Var 224 ai32)
(ArrayConstant
(ArrayConstructor
[]
(Array
(Integer 4)
Expand All @@ -593,13 +593,14 @@
(IntegerConstant 3 (Integer 4)))]
FixedSizeArray
)
()
RowMajor
)
()
)
(=
(Assignment
(Var 224 ai64)
(ArrayConstant
(ArrayConstructor
[]
(Array
(Integer 8)
Expand All @@ -611,27 +612,29 @@
(IntegerConstant 10 (Integer 4)))]
FixedSizeArray
)
()
RowMajor
)
()
)
(=
(Assignment
(Var 224 af32)
(ArrayConstant
(ArrayConstructor
[]
(Array
(Real 4)
[((IntegerConstant 0 (Integer 4))
(IntegerConstant 3 (Integer 4)))]
FixedSizeArray
)
()
RowMajor
)
()
)
(=
(Assignment
(Var 224 af64)
(ArrayConstant
(ArrayConstructor
[]
(Array
(Real 8)
Expand All @@ -641,13 +644,14 @@
(IntegerConstant 4 (Integer 4)))]
FixedSizeArray
)
()
RowMajor
)
()
)
(=
(Assignment
(Var 224 ac32)
(ArrayConstant
(ArrayConstructor
[]
(Array
(Complex 4)
Expand All @@ -659,13 +663,14 @@
(IntegerConstant 99 (Integer 4)))]
FixedSizeArray
)
()
RowMajor
)
()
)
(=
(Assignment
(Var 224 ac64)
(ArrayConstant
(ArrayConstructor
[]
(Array
(Complex 8)
Expand All @@ -679,6 +684,7 @@
(IntegerConstant 16 (Integer 4)))]
FixedSizeArray
)
()
RowMajor
)
()
Expand Down
2 changes: 1 addition & 1 deletion tests/reference/asr-arrays_01-a617b64.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-arrays_01-a617b64.stderr",
"stderr_hash": "b8317c7306f747ceefa8557c06f2a0b4a8a4bd7ae805bb494fca6ef2",
"stderr_hash": "69f8656cd4ab2b5cc8b1555c5b089c764a36a817023697e5314a7815",
"returncode": 2
}
4 changes: 4 additions & 0 deletions tests/reference/asr-arrays_01-a617b64.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ semantic error: Type mismatch in procedure call; the types must be compatible
|
9 | a : i8[4] = empty(4, dtype=int8)
| ^^^^^ type mismatch (passed argument type is list[i8] but required type is i8[4])


Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
2 changes: 1 addition & 1 deletion tests/reference/asr-arrays_02-da94458.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"stdout": null,
"stdout_hash": null,
"stderr": "asr-arrays_02-da94458.stderr",
"stderr_hash": "dc0e5be7cd6de7395421aedf1ce11977206f3e35bb7cba271aed8992",
"stderr_hash": "15fc716bf5d58791fd20510131f51127e7e99d1e8fab7a8d01e3b008",
"returncode": 2
}
Loading

0 comments on commit ff554ef

Please sign in to comment.