Skip to content

Commit 0b98e36

Browse files
committed
Updated reference tests
1 parent f921499 commit 0b98e36

39 files changed

+816
-82
lines changed

integration_tests/test_dict_increment.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ def test_dict_increment():
2222
d_int_int[1] += i1
2323
i2 += i1
2424
assert d_int_int[1] == i2
25-
25+
2626
i2 = 10
2727
d_int_int = {0: 0, 1: 0}
2828
for i1 in range(i2):
2929
d_int_int[i1 % 2] += 1
3030
assert d_int_int[0] == d_int_int[1]
3131
assert d_int_int[0] == i2 // 2
32-
32+
3333
j1 = 2.0
3434
d_int_float = {2: j1}
3535
while j1 < 4.0:
3636
d_int_float[2] += 0.1
3737
j1 += 0.1
3838
assert d_int_float[2] == j1
39-
39+
4040
j1 = 0.0
4141
j2 = 0.0
4242
d_bool_float = {True: 0.0, False: 0.0}
@@ -63,4 +63,4 @@ def test_dict_increment():
6363
s1 += str(i1)
6464
assert d_int_str[-1] == s1
6565

66-
test_dict_increment()
66+
test_dict_increment()

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": "f8ba6c730aea2846362708c15bb4ff33f587f833f791d26b55fc70b8",
9+
"stdout_hash": "dd9152135900885d4e4e13ad4877666492a73480c436267dd94567c0",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

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

Lines changed: 77 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
(Real 4)
127127
[(()
128128
())]
129+
DescriptorArray
129130
)
130131
()
131132
Source
@@ -140,6 +141,7 @@
140141
(Real 4)
141142
[(()
142143
())]
144+
DescriptorArray
143145
)]
144146
(Real 4)
145147
Source
@@ -234,6 +236,7 @@
234236
(Real 8)
235237
[(()
236238
())]
239+
DescriptorArray
237240
)
238241
()
239242
Source
@@ -248,6 +251,7 @@
248251
(Real 8)
249252
[(()
250253
())]
254+
DescriptorArray
251255
)]
252256
(Real 8)
253257
Source
@@ -334,6 +338,7 @@
334338
(Integer 2)
335339
[(()
336340
())]
341+
DescriptorArray
337342
)
338343
()
339344
Source
@@ -348,6 +353,7 @@
348353
(Integer 2)
349354
[(()
350355
())]
356+
DescriptorArray
351357
)]
352358
(Integer 2)
353359
Source
@@ -436,6 +442,7 @@
436442
(Integer 4)
437443
[(()
438444
())]
445+
DescriptorArray
439446
)
440447
()
441448
Source
@@ -450,6 +457,7 @@
450457
(Integer 4)
451458
[(()
452459
())]
460+
DescriptorArray
453461
)]
454462
(Integer 4)
455463
Source
@@ -533,6 +541,7 @@
533541
(Integer 8)
534542
[(()
535543
())]
544+
DescriptorArray
536545
)
537546
()
538547
Source
@@ -547,6 +556,7 @@
547556
(Integer 8)
548557
[(()
549558
())]
559+
DescriptorArray
550560
)]
551561
(Integer 8)
552562
Source
@@ -619,6 +629,7 @@
619629
(Complex 4)
620630
[((IntegerConstant 0 (Integer 4))
621631
(IntegerConstant 3 (Integer 4)))]
632+
FixedSizeArray
622633
)
623634
()
624635
Source
@@ -639,6 +650,7 @@
639650
(Complex 8)
640651
[((IntegerConstant 0 (Integer 4))
641652
(IntegerConstant 10 (Integer 4)))]
653+
FixedSizeArray
642654
)
643655
()
644656
Source
@@ -659,6 +671,7 @@
659671
(Real 4)
660672
[((IntegerConstant 0 (Integer 4))
661673
(IntegerConstant 3 (Integer 4)))]
674+
FixedSizeArray
662675
)
663676
()
664677
Source
@@ -679,6 +692,7 @@
679692
(Real 8)
680693
[((IntegerConstant 0 (Integer 4))
681694
(IntegerConstant 10 (Integer 4)))]
695+
FixedSizeArray
682696
)
683697
()
684698
Source
@@ -699,6 +713,7 @@
699713
(Integer 2)
700714
[((IntegerConstant 0 (Integer 4))
701715
(IntegerConstant 3 (Integer 4)))]
716+
FixedSizeArray
702717
)
703718
()
704719
Source
@@ -719,6 +734,7 @@
719734
(Integer 4)
720735
[((IntegerConstant 0 (Integer 4))
721736
(IntegerConstant 3 (Integer 4)))]
737+
FixedSizeArray
722738
)
723739
()
724740
Source
@@ -739,6 +755,7 @@
739755
(Integer 8)
740756
[((IntegerConstant 0 (Integer 4))
741757
(IntegerConstant 10 (Integer 4)))]
758+
FixedSizeArray
742759
)
743760
()
744761
Source
@@ -774,7 +791,18 @@
774791
[(FunctionCall
775792
208 accept_i16_array
776793
()
777-
[((Var 205 ai16))]
794+
[((ArrayPhysicalCast
795+
(Var 205 ai16)
796+
FixedSizeArray
797+
DescriptorArray
798+
(Array
799+
(Integer 2)
800+
[((IntegerConstant 0 (Integer 4))
801+
(IntegerConstant 3 (Integer 4)))]
802+
DescriptorArray
803+
)
804+
()
805+
))]
778806
(Integer 2)
779807
()
780808
()
@@ -787,7 +815,18 @@
787815
[(FunctionCall
788816
208 accept_i32_array
789817
()
790-
[((Var 205 ai32))]
818+
[((ArrayPhysicalCast
819+
(Var 205 ai32)
820+
FixedSizeArray
821+
DescriptorArray
822+
(Array
823+
(Integer 4)
824+
[((IntegerConstant 0 (Integer 4))
825+
(IntegerConstant 3 (Integer 4)))]
826+
DescriptorArray
827+
)
828+
()
829+
))]
791830
(Integer 4)
792831
()
793832
()
@@ -800,7 +839,18 @@
800839
[(FunctionCall
801840
208 accept_i64_array
802841
()
803-
[((Var 205 ai64))]
842+
[((ArrayPhysicalCast
843+
(Var 205 ai64)
844+
FixedSizeArray
845+
DescriptorArray
846+
(Array
847+
(Integer 8)
848+
[((IntegerConstant 0 (Integer 4))
849+
(IntegerConstant 10 (Integer 4)))]
850+
DescriptorArray
851+
)
852+
()
853+
))]
804854
(Integer 8)
805855
()
806856
()
@@ -813,7 +863,18 @@
813863
[(FunctionCall
814864
208 accept_f32_array
815865
()
816-
[((Var 205 af32))]
866+
[((ArrayPhysicalCast
867+
(Var 205 af32)
868+
FixedSizeArray
869+
DescriptorArray
870+
(Array
871+
(Real 4)
872+
[((IntegerConstant 0 (Integer 4))
873+
(IntegerConstant 3 (Integer 4)))]
874+
DescriptorArray
875+
)
876+
()
877+
))]
817878
(Real 4)
818879
()
819880
()
@@ -826,7 +887,18 @@
826887
[(FunctionCall
827888
208 accept_f64_array
828889
()
829-
[((Var 205 af64))]
890+
[((ArrayPhysicalCast
891+
(Var 205 af64)
892+
FixedSizeArray
893+
DescriptorArray
894+
(Array
895+
(Real 8)
896+
[((IntegerConstant 0 (Integer 4))
897+
(IntegerConstant 10 (Integer 4)))]
898+
DescriptorArray
899+
)
900+
()
901+
))]
830902
(Real 8)
831903
()
832904
()

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": "54f947ef59beab10149fb69a1dafc8691c782ca6b9e0242eba878eda",
9+
"stdout_hash": "ff86e48c2aec878635ceaddd671e0b89e6e20ad69c3944cd7dbfb88a",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

0 commit comments

Comments
 (0)