v4 / vlib / v3 / tests / test_all_lang_features.out
957 lines · 957 sloc · 7.21 KB · fdf1d4b8b182d77187ff4e0c02d98d935c6dec76
Raw
1=== v3 Test Suite ===
2--- 1. Struct Declaration & Initialization ---
310
420
50
60
7100
8200
914
1021
114
126
13--- 2. Calls & Selector Assignment ---
1415
1535
1612
1715
1820
1925
2050
21--- 3. Globals & Compound Assignment ---
22100
2370
2430
2525
2650
2784
28--- 4. Bool & Logic ---
291
300
311
321
331
341
35--- 5. Loop with Break/Continue ---
3623
3725
3815
3937
4010
41--- 6. Match ---
42777
43200
44111
45500
4640
47--- 7. C-style Loop ---
48120
4955
50256
5155
5230
53--- 8. Recursive Functions ---
5455
55720
5655
576
581024
59--- 9. Nested Loops ---
609
6120
6236
636
6415
65--- 10. Infinite Loop ---
665
6721
68128
690
7010
71--- 11. Many Arguments ---
728
7336
7416
759
7636
77--- 12. Modifying Struct via Function ---
78999
79888
8015
815
8230
8360
84105
85210
860
870
88--- 13. Assert ---
89Assert 1 passed
90Assert 2 passed
91Assert 3 passed
92Assert 4 passed
93Assert 5 passed
94--- 14. Heap Allocation ---
9510
9620
970
980
9925
10036
101100
102200
10342
1041
1052
106--- 15. Bitwise Operations ---
1078
10814
1096
110205
1115
1124
113--- 16. Shift Operations ---
11416
1158
11615
11756
1186
119--- 17. Modulo ---
1202
1212
1221
1230
1244
1255
1264
127--- 18. Pointer Arithmetic ---
12810
12920
130400
131600
13250
133100
13490
135300
136--- 19. Nested Struct Access ---
137100
138200
139110
140100
141200
14240
14360
144120
145--- 20. Negative Numbers ---
146-42
147-5
148-30
149-21
15050
151--- 21. Else-If Chains ---
1523
1532
1541
1550
1563
157--- 22. Function Returning Struct ---
15810
15920
16015
16124
16240
16360
1644
1656
166300
167--- 23. Early Return ---
16842
16917
1700
17110
17220
173--- 24. Clamp & Multi-Arg Functions ---
17410
175100
17650
17710
178100
179--- 25. Postfix Inc/Dec ---
18011
1819
1825
183101
18410
185--- 26. Compound Bitwise Assignment ---
18615
18710
1886
18916
19016
191--- 27. Complex Boolean ---
1921
1931
1941
1951
1961
197--- 28. Iterative Algorithms ---
1988
199111
2000
20115
20245
203--- 29. Bit Counting ---
2040
2053
2068
2071
2084
209--- 30. Global Counter Patterns ---
21045
2111
21215
21355
214120
21542
216--- 31. Nested Struct Mutation ---
21750
21860
21950
220100
22115
22225
2231200
22420
22560
226--- 32. Quadrant & Struct Passing ---
2271
2282
2293
2304
2310
232--- 33. 4-Field Struct ---
233255
234128
235100
236100
2370
23850
239765
240128
241--- 34. Fibonacci Iterative ---
24255
2436765
24488
24512
246987
247--- 35. Nested Loops with Flow Control ---
24830
24910
25027
25136
25212
253--- 36. Complex Match ---
25413
255400
256400
2572111
258300
259--- 37. Chained Function Calls ---
26010
26142
26215
26315
26425
265--- 38. Mixed Arithmetic ---
266257
26731
26820
26920
270249
271--- 39. Large Computations ---
2723628800
2731048576
2742870
2755050
27640320
277--- 40. Integration Test ---
27815
27930
28021
28126
2825
283Integration asserts passed
28455
285100
286--- 41. Vector Math ---
28732
28814
2895
2907
2919
292--- 42. Vector Scale & Cross ---
2933
2946
2959
296-3
29714
298--- 43. Matrix Operations ---
299-2
3005
30119
30222
30350
304--- 44. Prime Checking ---
30510
3061
3070
3081
3090
310--- 45. Integer Square Root ---
3110
3121
3132
31410
3159
316--- 46. Reverse & Palindrome ---
31754321
3181
3195
3201
3210
322--- 47. Stats Tracking ---
3233
32425
32560
3265
32712
328--- 48. Binary Search ---
3292
3300
3314
332-1
3333
334--- 49. Ackermann Function ---
3351
3363
3377
33829
3396
340--- 50. Triangle & Geometry ---
34112
342100
343-4
3443
3457
346--- 51. Digital Root ---
3470
3485
3493
3509
3516
352--- 52. Interpolation & Sign ---
35350
35413
3551
356-1
3570
358--- 53. Bit Manipulation ---
3590
3603
3618
36230
36332
364--- 54. Chained Struct Operations ---
3658
36616
36710
36818
36910
370--- 55. Global Accumulation ---
37115
37230
37345
37490
3753150
376--- 56. Sieve Simulation ---
377328
37847
3792
3806
381--- 57. Complex Loop Patterns ---
38255
38355
38410
38555
38689
387--- 58. Heap Struct Computations ---
3881400
389625
3904
39140
392150
393--- 59. Multi-Function Pipeline ---
3942
3952
396195
39755
39855
399--- 60. Stress Integration ---
400190
4010
40230
40325
404All stress assertions passed
405=== ALL 60 TESTS PASSED ===
406--- 61. Methods ---
40730
40830
40914
41016
41150
41230
413130
4149
41520
416--- 62. If-Expressions ---
4175
4187
4190
42020
42130
4225
42310
42415
4258
426-1
4271
4280
4295
4300
43110
43250
43330
434--- 63. String Interpolation ---
435The answer is 42
43610 + 20 = 30
437Value: 100!
438999
4391-2-3
440Hello World
441ABC
442--- 64. For-In Range ---
44310
44435
44514
44642
447120
44810
44925
450--- 65. Enums ---
4510
4523
45310
4541
455300
456--- 66. Defer Statements ---
45742
458100
459111
460--- 67. Unary Operations ---
4611
4620
4631
4641
4651
466--- 68. Complex Boolean ---
4671
4681
4691
4701
4711
472--- 69. Comparison as Expression ---
4731
4741
4751
4761
4771
478--- 70. Deeply Nested If ---
4791
48020
481300
4823
4838
484--- 71. Large Constants ---
485100000
4861000000
487100000
488100000
48910000
490--- 72. Mixed Operations ---
4911
4921
49311
49411
4954
496--- 73. Edge Cases ---
4970
4980
4990
50042
50142
50242
5031
50410
5050
5065
5071
5081
509--- 74. Complex Recursion ---
5105050
51121
512610
513243
5145040
515--- 75. Struct Operations ---
5160
5170
51815
51925
520300
521100
52240
52320
5241
525--- 76. Control Flow Edge Cases ---
5261
5277
52822
52955
530100
531200
532300
53315
534--- 77. Array Initialization ---
53510
53620
53730
53830
5397
54014
54121
542400
5437
54420
545--- 78. For-In Array ---
54660
54770
5486
5499
550180
551--- 79. Fixed Size Arrays ---
5525
55310
55415
55510
55630
557120
558103
5591
5605
5615
56215
563--- 80. String Struct Fields ---
564Hello
5655
5665
567Passed directly
568--- 81. Struct Field Operations ---
56915
57017
57142
57225
57375
57420
57540
5768
5777
57828
57915
58018
5812
5822
5838
58413
58515
58630
58720
58825
589100
59050
591--- 82. Println ---
592hello world
593--- 83. Algebraic Optimizations ---
5940
5950
59699
59777
59850
5990
60010
60126
6025
60314
6040
6050
60612345
60712345
60810
609--- 84. Dead Store Elimination ---
6101
61130
6125
613100
61475
615--- 85. Goto Statement ---
6163
6171
618--- 86. String Match Return ---
619__plus
620__minus
621__mul
622?
623--- 87. Return If Expression ---
624return if expr: ok
625--- 88. Or Blocks and Optional ---
62642
62799
62842
6297
630or blocks: ok
631--- 89. If Guard (Optional Unwrap) ---
63242
63399
63484
63550
6361
637if guard: ok
638--- 90. Maps ---
6391
6402
6413
6423
6432
64499
645100
646200
64710
64820
649maps: ok
650--- 91. String Methods ---
6511
6522
6533
6544
6555
6566
6574
6587
659hello
660world
661hello
662world
663/Users/test
664file.v
665hello
666abc
667abc
66842
669string methods: ok
670--- 92. Dynamic Arrays ---
6713
67210
67320
67430
67560
67620
6772
678hello
679world
680dynamic arrays: ok
681--- 93. Array Methods, Slicing, Split ---
6823
6834
6841
6853
6862
68720
6882
689200
6900
691contains 10: yes
692contains 7: no
693hello
694world
695hello
6963
69720
69830
6993
700a
701b
702c
703hello v3
7041
705array methods, slicing, split: ok
706--- 94. Map Iteration, Array Init with len ---
7076
7086
7095
7100
7113
71242
71342
714map iteration, array init: ok
715--- 95. In Operator, Array Join ---
716hello in map: yes
717missing not in map: yes
71820 in array: yes
71999 not in array: yes
720hello, world, v3
721hello world v3
722in operator, array join: ok
723hello world
724line1
725line2
726line3
727strings.Builder: ok
728static methods: ok
729@FILE: ok
730unsafe blocks: ok
731function pointers: ok
732sum type smartcast: ok
733--- 102. In Operator LHS Evaluation ---
734range side effect: yes
7351
736inline side effect: no
7371
738not in side effect: yes
7391
740in operator lhs eval: ok
741--- 103. Transformer Semantic Lowering ---
742interp 7 true
7436
744297
74512
74642
7479
74842
7494
750map membership lowered: yes
75110
752Milo
753transformer semantic lowering: ok
754--- 104. Review Regression Lowering ---
7552
756v3
7572
758100
759Bolt
7608
7617
762-1
7637
764-1
76542
766review regression lowering: ok
767--- 105. Self-Hosting Features ---
76810
76911
7702
7711
772hello
773world
7743
7752
776Socks and Buddy
777self-hosting features: ok
778--- 106. Multi-Return Functions ---
77942
780hello
78120
78210
78330
78433
7853
786multi-return: ok
787--- 107. Struct Update Syntax (Assoc) ---
78899
78920
79010
79155
7923
79342
7943
795struct update (assoc): ok
796--- 108. Array Push Many ---
7975
7982
7999
8006
80120
802third
803array push_many: ok
804--- 109. String Comparison Operators ---
8051
8061
8071
8081
809cat
810string comparison: ok
811--- 110. Struct Operator Overloading ---
8124
8136
8141
8151
81614
81718
818struct operators: ok
819--- 111. Return Match / Match as Expression ---
820one
821three
822B
823zero
824one-two
825match expression: ok
826--- 112. If Expression Returning String ---
827yes
828big
829positive
830Result: pass
831odd
832if expr string: ok
833--- 113. @FN Comptime ---
834main
835@FN and @FILE: ok
836--- 114. String in Expressions ---
8371
838less
8391
840Hello, World
8413
842string expressions: ok
843--- 115. Self-Host Regression Features ---
84414
8459
8463
847resolved
8487
849resolved
85011
8517
852self-host regression features: ok
853--- 116. Additional Self-Host Feature Coverage ---
854v3
8557
856v3
85742
8582
85911
860int literal
8611
8622
86345
864additional self-host feature coverage: ok
865--- 117. ARM64 Self-Host Regression Coverage ---
866map[string][]Type
867Type
868fn(ArrayDataHeader) base_data
869Writer
870Reader
8718
8721
873-1
8743
875SSA
8762
87720
8782
8795
880scoped
8811
88212
88324
8849
88523
88631
887as-cast
888Elem
889Array
8904
891-5
8920
8931
894116
8958
896[]Type
8971
8981
89927
9001
90115
90238
90380
90433
90592
90641
90718
9086
9091
91035
91112
9127
913match-id
914not-ident
915idx
9161
9170
918fallback
9196
920125
92127
92238
92311
92483
92571
92675
927101
92821
92929
93031
931Option(none)|Option('halt')
932Option('tail')
933Option('set')
934"abc"
93541
93679
93743
9389
9394
94013
94138
94247
94353
94461
94516
94667
94789
94897
94959
950103
951107
952109
953113
95494
955117
956arm64 self-host regression coverage: ok
957=== ALL 119 TESTS PASSED ===
958