Skip to content

Commit ff554ef

Browse files
committed
TEST: Updated reference tests
1 parent e32ae29 commit ff554ef

File tree

511 files changed

+2828
-2071
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

511 files changed

+2828
-2071
lines changed

tests/reference/asr-array_01_decl-39cf894.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "asr-array_01_decl-39cf894.stdout",
9-
"stdout_hash": "f14010ffcf7d42b89e54c88ebecc7ca51d67b204825e07f4f708875e",
9+
"stdout_hash": "34c5f9983e43e6b5c65f021792e415f0c2e4fe5135c6435eb5322719",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

tests/reference/asr-array_01_decl-39cf894.stdout

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
)
157157
[]
158158
[(Var 224 xf32)]
159-
[(=
159+
[(Assignment
160160
(ArrayItem
161161
(Var 224 xf32)
162162
[(()
@@ -180,7 +180,7 @@
180180
)
181181
()
182182
)
183-
(=
183+
(Assignment
184184
(Var 224 _lpython_return_variable)
185185
(ArrayItem
186186
(Var 224 xf32)
@@ -265,7 +265,7 @@
265265
)
266266
[]
267267
[(Var 225 xf64)]
268-
[(=
268+
[(Assignment
269269
(ArrayItem
270270
(Var 225 xf64)
271271
[(()
@@ -281,7 +281,7 @@
281281
)
282282
()
283283
)
284-
(=
284+
(Assignment
285285
(Var 225 _lpython_return_variable)
286286
(ArrayItem
287287
(Var 225 xf64)
@@ -366,7 +366,7 @@
366366
)
367367
[]
368368
[(Var 221 xi16)]
369-
[(=
369+
[(Assignment
370370
(ArrayItem
371371
(Var 221 xi16)
372372
[(()
@@ -384,7 +384,7 @@
384384
)
385385
()
386386
)
387-
(=
387+
(Assignment
388388
(Var 221 _lpython_return_variable)
389389
(ArrayItem
390390
(Var 221 xi16)
@@ -469,7 +469,7 @@
469469
)
470470
[]
471471
[(Var 222 xi32)]
472-
[(=
472+
[(Assignment
473473
(ArrayItem
474474
(Var 222 xi32)
475475
[(()
@@ -482,7 +482,7 @@
482482
(IntegerConstant 32 (Integer 4))
483483
()
484484
)
485-
(=
485+
(Assignment
486486
(Var 222 _lpython_return_variable)
487487
(ArrayItem
488488
(Var 222 xi32)
@@ -567,7 +567,7 @@
567567
)
568568
[]
569569
[(Var 223 xi64)]
570-
[(=
570+
[(Assignment
571571
(ArrayItem
572572
(Var 223 xi64)
573573
[(()
@@ -585,7 +585,7 @@
585585
)
586586
()
587587
)
588-
(=
588+
(Assignment
589589
(Var 223 _lpython_return_variable)
590590
(ArrayItem
591591
(Var 223 xi64)
@@ -779,100 +779,107 @@
779779
accept_f32_array
780780
accept_f64_array]
781781
[]
782-
[(=
782+
[(Assignment
783783
(Var 226 ai16)
784-
(ArrayConstant
784+
(ArrayConstructor
785785
[]
786786
(Array
787787
(Integer 2)
788788
[((IntegerConstant 0 (Integer 4))
789789
(IntegerConstant 3 (Integer 4)))]
790790
FixedSizeArray
791791
)
792+
()
792793
RowMajor
793794
)
794795
()
795796
)
796-
(=
797+
(Assignment
797798
(Var 226 ai32)
798-
(ArrayConstant
799+
(ArrayConstructor
799800
[]
800801
(Array
801802
(Integer 4)
802803
[((IntegerConstant 0 (Integer 4))
803804
(IntegerConstant 3 (Integer 4)))]
804805
FixedSizeArray
805806
)
807+
()
806808
RowMajor
807809
)
808810
()
809811
)
810-
(=
812+
(Assignment
811813
(Var 226 ai64)
812-
(ArrayConstant
814+
(ArrayConstructor
813815
[]
814816
(Array
815817
(Integer 8)
816818
[((IntegerConstant 0 (Integer 4))
817819
(IntegerConstant 10 (Integer 4)))]
818820
FixedSizeArray
819821
)
822+
()
820823
RowMajor
821824
)
822825
()
823826
)
824-
(=
827+
(Assignment
825828
(Var 226 af32)
826-
(ArrayConstant
829+
(ArrayConstructor
827830
[]
828831
(Array
829832
(Real 4)
830833
[((IntegerConstant 0 (Integer 4))
831834
(IntegerConstant 3 (Integer 4)))]
832835
FixedSizeArray
833836
)
837+
()
834838
RowMajor
835839
)
836840
()
837841
)
838-
(=
842+
(Assignment
839843
(Var 226 af64)
840-
(ArrayConstant
844+
(ArrayConstructor
841845
[]
842846
(Array
843847
(Real 8)
844848
[((IntegerConstant 0 (Integer 4))
845849
(IntegerConstant 10 (Integer 4)))]
846850
FixedSizeArray
847851
)
852+
()
848853
RowMajor
849854
)
850855
()
851856
)
852-
(=
857+
(Assignment
853858
(Var 226 ac32)
854-
(ArrayConstant
859+
(ArrayConstructor
855860
[]
856861
(Array
857862
(Complex 4)
858863
[((IntegerConstant 0 (Integer 4))
859864
(IntegerConstant 3 (Integer 4)))]
860865
FixedSizeArray
861866
)
867+
()
862868
RowMajor
863869
)
864870
()
865871
)
866-
(=
872+
(Assignment
867873
(Var 226 ac64)
868-
(ArrayConstant
874+
(ArrayConstructor
869875
[]
870876
(Array
871877
(Complex 8)
872878
[((IntegerConstant 0 (Integer 4))
873879
(IntegerConstant 10 (Integer 4)))]
874880
FixedSizeArray
875881
)
882+
()
876883
RowMajor
877884
)
878885
()

tests/reference/asr-array_02_decl-e8f6874.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "asr-array_02_decl-e8f6874.stdout",
9-
"stdout_hash": "5279aef41f63f0cd241fff1b853b3186a3d83a32905264b64b66705c",
9+
"stdout_hash": "16f1a4388b7117f7ce6886ac48749fe533265ee12949b513a9317eba",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

tests/reference/asr-array_02_decl-e8f6874.stdout

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
)
109109
[]
110110
[(Var 222 xf32)]
111-
[(=
111+
[(Assignment
112112
(Var 222 _lpython_return_variable)
113113
(ArrayItem
114114
(Var 222 xf32)
@@ -197,7 +197,7 @@
197197
)
198198
[]
199199
[(Var 223 xf64)]
200-
[(=
200+
[(Assignment
201201
(Var 223 _lpython_return_variable)
202202
(ArrayItem
203203
(Var 223 xf64)
@@ -289,7 +289,7 @@
289289
)
290290
[]
291291
[(Var 220 xi32)]
292-
[(=
292+
[(Assignment
293293
(Var 220 _lpython_return_variable)
294294
(ArrayItem
295295
(Var 220 xi32)
@@ -385,7 +385,7 @@
385385
)
386386
[]
387387
[(Var 221 xi64)]
388-
[(=
388+
[(Assignment
389389
(Var 221 _lpython_return_variable)
390390
(ArrayItem
391391
(Var 221 xi64)
@@ -581,9 +581,9 @@
581581
accept_multidim_f32_array
582582
accept_multidim_f64_array]
583583
[]
584-
[(=
584+
[(Assignment
585585
(Var 224 ai32)
586-
(ArrayConstant
586+
(ArrayConstructor
587587
[]
588588
(Array
589589
(Integer 4)
@@ -593,13 +593,14 @@
593593
(IntegerConstant 3 (Integer 4)))]
594594
FixedSizeArray
595595
)
596+
()
596597
RowMajor
597598
)
598599
()
599600
)
600-
(=
601+
(Assignment
601602
(Var 224 ai64)
602-
(ArrayConstant
603+
(ArrayConstructor
603604
[]
604605
(Array
605606
(Integer 8)
@@ -611,27 +612,29 @@
611612
(IntegerConstant 10 (Integer 4)))]
612613
FixedSizeArray
613614
)
615+
()
614616
RowMajor
615617
)
616618
()
617619
)
618-
(=
620+
(Assignment
619621
(Var 224 af32)
620-
(ArrayConstant
622+
(ArrayConstructor
621623
[]
622624
(Array
623625
(Real 4)
624626
[((IntegerConstant 0 (Integer 4))
625627
(IntegerConstant 3 (Integer 4)))]
626628
FixedSizeArray
627629
)
630+
()
628631
RowMajor
629632
)
630633
()
631634
)
632-
(=
635+
(Assignment
633636
(Var 224 af64)
634-
(ArrayConstant
637+
(ArrayConstructor
635638
[]
636639
(Array
637640
(Real 8)
@@ -641,13 +644,14 @@
641644
(IntegerConstant 4 (Integer 4)))]
642645
FixedSizeArray
643646
)
647+
()
644648
RowMajor
645649
)
646650
()
647651
)
648-
(=
652+
(Assignment
649653
(Var 224 ac32)
650-
(ArrayConstant
654+
(ArrayConstructor
651655
[]
652656
(Array
653657
(Complex 4)
@@ -659,13 +663,14 @@
659663
(IntegerConstant 99 (Integer 4)))]
660664
FixedSizeArray
661665
)
666+
()
662667
RowMajor
663668
)
664669
()
665670
)
666-
(=
671+
(Assignment
667672
(Var 224 ac64)
668-
(ArrayConstant
673+
(ArrayConstructor
669674
[]
670675
(Array
671676
(Complex 8)
@@ -679,6 +684,7 @@
679684
(IntegerConstant 16 (Integer 4)))]
680685
FixedSizeArray
681686
)
687+
()
682688
RowMajor
683689
)
684690
()

tests/reference/asr-arrays_01-a617b64.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_01-a617b64.stderr",
11-
"stderr_hash": "b8317c7306f747ceefa8557c06f2a0b4a8a4bd7ae805bb494fca6ef2",
11+
"stderr_hash": "69f8656cd4ab2b5cc8b1555c5b089c764a36a817023697e5314a7815",
1212
"returncode": 2
1313
}

tests/reference/asr-arrays_01-a617b64.stderr

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ semantic error: Type mismatch in procedure call; the types must be compatible
66
|
77
9 | a : i8[4] = empty(4, dtype=int8)
88
| ^^^^^ type mismatch (passed argument type is list[i8] but required type is i8[4])
9+
10+
11+
Note: Please report unclear or confusing messages as bugs at
12+
https://github.com/lcompilers/lpython/issues.

tests/reference/asr-arrays_02-da94458.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_02-da94458.stderr",
11-
"stderr_hash": "dc0e5be7cd6de7395421aedf1ce11977206f3e35bb7cba271aed8992",
11+
"stderr_hash": "15fc716bf5d58791fd20510131f51127e7e99d1e8fab7a8d01e3b008",
1212
"returncode": 2
1313
}

0 commit comments

Comments
 (0)