Last active 1 month ago

ncc-test-verbose.log Raw
1cargo build --release
2warning: variable `has_hex_digit` is assigned to, but never used
3 --> src/compiler/syntax/lexer.rs:232:29
4 |
5232 | let mut has_hex_digit = false;
6 | ^^^^^^^^^^^^^
7 |
8 = note: consider using `_has_hex_digit` instead
9 = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
10
11warning: value assigned to `has_hex_digit` is never read
12 --> src/compiler/syntax/lexer.rs:237:29
13 |
14237 | ... has_hex_digit = true;
15 | ^^^^^^^^^^^^^
16 |
17 = help: maybe it is overwritten before being read?
18 = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
19
20warning: variable `has_octal_digit` is assigned to, but never used
21 --> src/compiler/syntax/lexer.rs:254:29
22 |
23254 | let mut has_octal_digit = false;
24 | ^^^^^^^^^^^^^^^
25 |
26 = note: consider using `_has_octal_digit` instead
27
28warning: value assigned to `has_octal_digit` is never read
29 --> src/compiler/syntax/lexer.rs:259:29
30 |
31259 | ... has_octal_digit = true;
32 | ^^^^^^^^^^^^^^^
33 |
34 = help: maybe it is overwritten before being read?
35
36warning: multiple methods are never used
37 --> src/compiler/backend/asm.rs:46:8
38 |
39 14 | impl AsmBackend {
40 | --------------- methods in this implementation
41...
42 46 | fn emit_syscall_write(&self, out: &mut String) {
43 | ^^^^^^^^^^^^^^^^^^
44...
45 51 | fn emit_syscall_exit(&self, out: &mut String) {
46 | ^^^^^^^^^^^^^^^^^
47...
48 56 | fn emit_syscall_mmap(&self, out: &mut String) {
49 | ^^^^^^^^^^^^^^^^^
50...
51 62 | fn emit_syscall_read(&self, out: &mut String) {
52 | ^^^^^^^^^^^^^^^^^
53...
54 67 | fn emit_syscall_open(&self, out: &mut String) {
55 | ^^^^^^^^^^^^^^^^^
56...
57 72 | fn emit_syscall_close(&self, out: &mut String) {
58 | ^^^^^^^^^^^^^^^^^^
59...
60 77 | fn emit_syscall_stat(&self, out: &mut String) {
61 | ^^^^^^^^^^^^^^^^^
62...
63 82 | fn emit_syscall_getdents64(&self, out: &mut String) {
64 | ^^^^^^^^^^^^^^^^^^^^^^^
65...
66 87 | fn emit_syscall_unlink(&self, out: &mut String) {
67 | ^^^^^^^^^^^^^^^^^^^
68...
69 92 | fn emit_syscall_access(&self, out: &mut String) {
70 | ^^^^^^^^^^^^^^^^^^^
71...
72 97 | fn emit_syscall_nanosleep(&self, out: &mut String) {
73 | ^^^^^^^^^^^^^^^^^^^^^^
74...
75102 | fn emit_syscall_clock_gettime(&self, out: &mut String) {
76 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
77...
78125 | fn stat_st_size_offset(&self) -> usize {
79 | ^^^^^^^^^^^^^^^^^^^
80 |
81 = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
82
83warning: method `lower_global_function_call` is never used
84 --> src/compiler/ir/mod.rs:4374:8
85 |
86 744 | impl<'a> FunctionBuilder<'a> {
87 | ---------------------------- method in this implementation
88...
894374 | fn lower_global_function_call(
90 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
91
92warning: method `parse_statement` is never used
93 --> src/compiler/syntax/parser.rs:613:8
94 |
95 24 | impl<'a> Parser<'a> {
96 | ------------------- method in this implementation
97...
98613 | fn parse_statement(&mut self) -> Statement {
99 | ^^^^^^^^^^^^^^^
100
101warning: `ncc` (lib) generated 7 warnings
102 Finished `release` profile [optimized] target(s) in 0.02s
103Running tests with verbose output...
104
105==================== array_range.nc ====================
106Expected: PASS check and run
107FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
108Running array_range.nc...
109--- Basic Slice ---
110[0, 1, 1, 2, 3]
111[1, 2, 3, 5]
112
113--- Step Slice ---
114[0, 1, 3, 8, 21, 55]
115FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
116Result: ✅ PASSED
117
118==================== array_simple.nc ====================
119Expected: PASS check and run
120FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
121Running array_simple.nc...
122Array created
123Index: 0
124Index: 1
125Index: 2
126Done
127FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
128Result: ✅ PASSED
129
130==================== assert.nc ====================
131Expected: PASS check and run
132FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
133Running assert.nc...
134Assert passed: x < y
135Assert passed: x != y
136Assert passed: true
137All assertions passed!
138FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
139Result: ✅ PASSED
140
141==================== async_await.fail.nc ====================
142Expected: FAIL check (legacy)
143Error: expected function call after 'async'
144 --> tests/async_await.fail.nc:12:26
145 |
14612 | int* future = async 5
147 | ^
148 | here
149
150Error: compilation halted: 1 errors emitted
151FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
152Result: ✅ PASSED (error as expected)
153
154==================== async_error_handling.nc ====================
155Expected: PASS check and run
156FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
157Running async_error_handling.nc...
158Success! Value: 42
159FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
160Result: ✅ PASSED
161
162==================== async.nc ====================
163Expected: PASS check and run
164FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
165Running async.nc...
166Result from async call: 5050
167Result 2: 5050
168Result 3: 5050
169All async operations completed!
170FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
171Result: ✅ PASSED
172
173==================== async_type_mismatch.fail.nc ====================
174Expected: FAIL check (legacy)
175Error: cannot initialize variable 'result' of type 'int' with value of type 'int*'
176 --> tests/async_type_mismatch.fail.nc:10:5
177 |
17810 | int result = async returnsInt()
179 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
180 |
181
182Error: cannot await non-Future type 'int'
183 --> tests/async_type_mismatch.fail.nc:14:19
184 |
18514 | int y = await x
186 | ^
187 |
188
189Error: type validation failed
190FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
191Result: ✅ PASSED (error as expected)
192
193==================== bool.nc ====================
194Expected: PASS check and run
195FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
196Running bool.nc...
197True is: true
198False is: false
199t is true
200f is false
201FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
202Result: ✅ PASSED
203
204==================== builtins_combined.nc ====================
205Expected: PASS check and run
206FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
207Running builtins_combined.nc...
208new(int) = 0
209int("789") = 789
210Assert passed: val = 100
211str(new(int)) = "0"
212All builtin function tests passed!
213FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
214Result: ✅ PASSED
215
216==================== byte_test.nc ====================
217Expected: PASS check and test
218FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
219Testing byte_test.nc...
220No tests found in tests/byte_test.nc
221FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
222Result: ✅ PASSED
223
224==================== char_conversion.nc ====================
225Expected: PASS check and run
226FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
227Running char_conversion.nc...
228ASCII 'A' test passed
229ASCII 'z' test passed
230Digit '0' test passed
231Special chars test passed
2322-byte UTF-8: é
233Greek alpha: α
234Chinese 中: 中
235Heart: ❤
236Emoji: 😀
237Thumbs up: 👍
238Invalid surrogate: �
239Over max unicode: �
240Null char length: should work
241Max ASCII (DEL): passed
242Max unicode codepoint: 􏿿
243Byte to char conversion passed
244int(char) round-trip passed
245byte(char) conversion passed
246All char() tests passed!
247FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
248Result: ✅ PASSED
249
250==================== char_test.nc ====================
251Expected: PASS check and test
252FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
253Testing char_test.nc...
254No tests found in tests/char_test.nc
255FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
256Result: ✅ PASSED
257
258==================== comparison.nc ====================
259Expected: PASS check and run
260FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
261Running comparison.nc...
262String: abc
263Length: 3
2640 < 3: true
2651 < 3: true
2662 < 3: true
2673 < 3: false (CORRECT)
268FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
269Result: ✅ PASSED
270
271==================== compound.nc ====================
272Expected: PASS check and run
273FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
274Running compound.nc...
275Numerator: 20, Denominator: 31
276Numerator: 40, Denominator: 31
277x = 15
278x = 12
279x = 24
280x = 6
281x = 2
282FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
283Result: ✅ PASSED
284
285==================== enum.nc ====================
286Expected: PASS check and run
287FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
288Running enum.nc...
289complete
290failed
291pending
2921
2930
294stat1 is Complete
295stat2 is not Pending
296FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
297Result: ✅ PASSED
298
299==================== error_handling.nc ====================
300Expected: PASS check and run
301FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
302Running error_handling.nc...
303Result: 5
304Got expected error: division by zero
305Found at index: 2
306Correctly not found
307FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
308Result: ✅ PASSED
309
310==================== file_buffer.nc ====================
311Expected: PASS check and run
312FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
313Running file_buffer.nc...
314Wrote 20 bytes
315Read 20 bytes
316File contents: ABCDEFGHIJKLMNOPQRST
317Content verified!
318Seek test passed!
319SEEK_CUR test passed!
320SEEK_END test passed!
321Chunked reading test passed! Read 20 bytes in 4 chunks
322write_str test passed!
323Original: Hello, world!
324Read back: Hello, world!
325String to bytes round-trip passed!
326All buffer I/O tests passed!
327FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
328Result: ✅ PASSED
329
330==================== functions_as_values.nc ====================
331Expected: PASS check and run
332FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
333Running functions_as_values.nc...
334FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
335Result: ✅ PASSED
336
337==================== if_expression_value.nc ====================
338Expected: PASS check and run
339FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
340Running if_expression_value.nc...
341Red:red
342Green:green
343Blue:blue
344Grade for 90:A+
345Grade for 50:F
346Result:two
347All if-expression tests passed!
348FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
349Result: ✅ PASSED
350
351==================== int_conversions.nc ====================
352Expected: PASS check and run
353FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
354Running int_conversions.nc...
355int() conversions: 123, 456
356uint() conversions: 789, 100
357bigint() conversions: 123456789, 999
358type conversions: int=42, uint=42, bigint=42
359FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
360Result: ✅ PASSED
361
362==================== int_decimal_trunc.nc ====================
363Expected: PASS check and run
364FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
365Running int_decimal_trunc.nc...
366decimal to int (truncated): 3.14d -> 3, 2.99d -> 2, -1.5d -> -3
367decimal to uint (truncated): 3.14d -> 3, 2.99d -> 2
368decimal to bigint (truncated): 3.14d -> 3
369FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
370Result: ✅ PASSED
371
372==================== interpolation_works.nc ====================
373Expected: PASS check and run
374FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
375Running interpolation_works.nc...
376int: 42
377str: value
378expr: 52
379literal: 999
380FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
381Result: ✅ PASSED
382
383==================== int_hex_octal.nc ====================
384Expected: PASS check and run
385FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
386Running int_hex_octal.nc...
387hex values: 0xFF=255, 0xff=255, 0x10=16, 0xABCD=43981
388octal values: 0o777=511, 0o10=8, 0o123=83
3890xFF + 0o10 = 263
390FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
391Result: ✅ PASSED
392
393==================== int_type_incompatibility.fail.nc ====================
394Expected: FAIL check (legacy)
395Error: cannot mix bigint with int or uint in arithmetic operator '+'
396 --> tests/int_type_incompatibility.fail.nc:8:19
397 |
3988 | int result1 = i + b // Error: cannot mix bigint with int
399 | ^
400 |
401 --> tests/int_type_incompatibility.fail.nc:8:23
402 |
4038 | int result1 = i + b // Error: cannot mix bigint with int
404 | ^
405 |
406
407Error: cannot mix bigint with int or uint in arithmetic operator '+'
408 --> tests/int_type_incompatibility.fail.nc:9:22
409 |
4109 | bigint result2 = b + i // Error: cannot mix bigint with int
411 | ^
412 |
413 --> tests/int_type_incompatibility.fail.nc:9:26
414 |
4159 | bigint result2 = b + i // Error: cannot mix bigint with int
416 | ^
417 |
418
419Error: cannot mix bigint with int or uint in arithmetic operator '*'
420 --> tests/int_type_incompatibility.fail.nc:10:19
421 |
42210 | int result3 = i * b // Error: cannot mix bigint with int
423 | ^
424 |
425 --> tests/int_type_incompatibility.fail.nc:10:23
426 |
42710 | int result3 = i * b // Error: cannot mix bigint with int
428 | ^
429 |
430
431Error: type validation failed
432FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
433Result: ✅ PASSED (error as expected)
434
435==================== int_types.nc ====================
436Expected: PASS check and run
437FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
438Running int_types.nc...
439int values: 42, -100
440uint values: 100, 0
441bigint values: 0, 999
442converted from string: int=123, uint=456, bigint=789
443FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
444Result: ✅ PASSED
445
446==================== listdir.nc ====================
447Expected: PASS check and run
448FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
449Running listdir.nc...
450=== Using io.stat (single file) ===
451README.md: size=786, is_dir=0, mode=420
452
453=== Using io.readdir (directory listing) ===
454Found 14 entries:
455 [dir] .github: 4096 bytes
456 [file] Makefile: 6916 bytes
457 [file] test.txt: 13884 bytes
458 [dir] tests: 4096 bytes
459 [dir] target: 4096 bytes
460 [file] .gitignore: 708 bytes
461 [dir] .git: 4096 bytes
462 [file] LICENSE: 11356 bytes
463 [dir] .idea: 4096 bytes
464 [dir] src: 4096 bytes
465 [file] Cargo.lock: 6566 bytes
466 [file] Cargo.toml: 238 bytes
467 [dir] std: 4096 bytes
468 [file] README.md: 786 bytes
469
470=== Recursive directory listing ===
471 [file] Makefile
472 [file] test.txt
473 [dir] tests/
474 [file] variadic_debug.nc
475 [file] no_unqualified_access.fail.nc
476 [file] int_hex_octal.nc
477 [file] testing.test.nc
478 [file] scope_leak_if.fail.nc
479 [file] segfault.fail.run.nc
480 [file] spread_prefix.nc
481 [file] struct.nc
482 [file] struct_array.nc
483 [file] panic.fail.run.nc
484 [file] interpolation_works.nc
485 [file] functions_as_values.nc
486 [file] variadic_iter.nc
487 [file] spread_module.nc
488 [file] error_handling.nc
489 [file] async.nc
490 [file] variadic.nc
491 [file] nested_struct_array.nc
492 [file] builtins_combined.nc
493 [file] enum.nc
494 [file] type_casts.nc
495 [file] simple_slice.nc
496 [file] spread_variadic_forward.nc
497 [file] listdir.nc
498 [file] scope_leak.fail.nc
499 [file] char_conversion.nc
500 [file] type_mismatch_arg.fail.nc
501 [file] variadic_simple.nc
502 [file] comparison.nc
503 [file] spread_enum.nc
504 [file] int_types.nc
505 [file] type_alias.nc
506 [file] str.nc
507 [file] loops.nc
508 [file] tuples_comprehensive.nc
509 [file] array_simple.nc
510 [file] type_alias_func.nc
511 [file] file_buffer.nc
512 [file] async_type_mismatch.fail.nc
513 [file] int_conversions.nc
514 [file] map_basic.nc
515 [file] spread_import_enum.nc
516 [file] char_test.nc
517 [file] new.nc
518 [file] std_log.nc
519 [file] if_expression_value.nc
520 [dir] helpers/
521 [file] math_utils.nc
522 [file] wrapper.nc
523 [file] assert.nc
524 [file] loop_scope.nc
525 [file] shadowing.nc
526 [file] module_qualified_only.nc
527 [file] type_mismatch_println.fail.nc
528 [file] spread_simple.nc
529 [file] type_alias_nested.nc
530 [file] multi_module_same_import.nc
531 [file] int_decimal_trunc.nc
532 [file] array_range.nc
533 [file] time_format.nc
534 [file] byte_test.nc
535 [file] bool.nc
536 [file] async_await.fail.nc
537 [file] operators.nc
538 [file] time_now.nc
539 [file] compound.nc
540 [file] int_type_incompatibility.fail.nc
541 [file] type_mismatch_assignment.fail.nc
542 [file] async_error_handling.nc
543 [file] time_sleep.nc
544 [file] .gitignore
545 [file] LICENSE
546 [dir] src/
547 [file] lib.rs
548 [dir] compiler/
549 [dir] passes/
550 [file] mod.rs
551 [file] optimizations.rs
552 [dir] syntax/
553 [file] ast.rs
554 [file] mod.rs
555 [file] lexer.rs
556 [file] parser.rs
557 [file] ast_printer.rs
558 [dir] source/
559 [file] mod.rs
560 [file] driver.rs
561 [file] target.rs
562 [file] mod.rs
563 [dir] hir/
564 [file] mod.rs
565 [dir] backend/
566 [file] mod.rs
567 [file] asm.rs
568 [dir] diagnostics/
569 [file] mod.rs
570 [file] runtime.rs
571 [dir] ir/
572 [file] mod.rs
573 [file] cli.rs
574 [file] main.rs
575 [file] Cargo.lock
576 [file] Cargo.toml
577 [dir] std/
578 [file] os.nc
579 [file] math.nc
580 [file] log.nc
581 [file] io.nc
582 [file] time.nc
583 [file] README.md
584FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
585Result: ✅ PASSED
586
587==================== loop_scope.nc ====================
588Expected: PASS check and run
589FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
590Running loop_scope.nc...
591n: 0 1
592n: 1 2
593n: 2 3
594x: 2
595FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
596Result: ✅ PASSED
597
598==================== loops.nc ====================
599Expected: PASS check and run
600FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
601Running loops.nc...
602a = 0
603a = 1
604a = 2
605a = 3
606a = 4
607a = 5
608a = 6
609a = 7
610a = 8
611a = 9
612b = 2
613b = 1
6141
6152
6163
6174
6185
6196
6207
6218
6229
62310
62411
62512
62613
62714
62815
62916
63017
63118
63219
63320
6341
6353
6365
6377
6389
63911
64013
64115
64217
64319
644FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
645Result: ✅ PASSED
646
647==================== map_basic.nc ====================
648Expected: PASS check and run
649FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
650Running map_basic.nc...
65130 25
652NY CA
653IL
654FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
655Result: ✅ PASSED
656
657==================== module_qualified_only.nc ====================
658Expected: PASS check and run
659FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
660Running module_qualified_only.nc...
661Qualified access works
662FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
663Result: ✅ PASSED
664
665==================== multi_module_same_import.nc ====================
666Expected: PASS check and run
667FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
668Running multi_module_same_import.nc...
6692
6701
671Main module calling helpers
672Doubling 5
673Result: 10
674Tripling 3
675Result2: 9
676Local:Doubling 5
677Result3: 10
678Local:Tripling 3
679Result4: 9
680FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
681Result: ✅ PASSED
682
683==================== nested_struct_array.nc ====================
684Expected: PASS check and run
685FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
686Running nested_struct_array.nc...
687All tests passed!
688FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
689Result: ✅ PASSED
690
691==================== new.nc ====================
692Expected: PASS check and run
693FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
694Running new.nc...
695new(int) = 0
696new(bool) = 0
697new(str) = ""
698new(int) again = 0
699FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
700Result: ✅ PASSED
701
702==================== no_unqualified_access.fail.nc ====================
703Expected: FAIL check (legacy)
704Error: function 'println' is not defined
705 --> tests/no_unqualified_access.fail.nc:5:12
706 |
7075 | println("This should fail")
708 | ^^^^^^^^^^^^^^^^^^^^
709 |
710
711Error: type validation failed
712FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
713Result: ✅ PASSED (error as expected)
714
715==================== operators.nc ====================
716Expected: PASS check and run
717FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
718Running operators.nc...
719=== Arithmetic Operators ===
720a = 10, b = 3
721a + b = 13
722a - b = 7
723a * b = 30
724a / b = 3
725a % b = 1
726a ** b = 1000
727
728=== Comparison Operators ===
729a == b: 0
730a != b: 1
731a < b: 0
732a > b: 1
733a <= b: 0
734a >= b: 1
735
736=== Logical Operators ===
737x = 1, y = 0
738x and y: 0
739x or y: 1
740not x: 0
741not y: 1
742
743=== Bitwise Operators ===
744c = 5, d = 3
745c << 1 = 10
746c >> 1 = 2
747c & d = 1
748c | d = 7
749c ^ d = 6
750!c = -6
751
752=== Concatenation Operator ===
753s1 <> s2 <> s3 = Hello World
754arr1 <> arr2: concatenated (array length: 771)
755
756=== Unary Operators ===
757e = 42
758-e = -42
759!e = -43
760f = 1
761not f = 0
762
763=== Operator Precedence ===
7642 + 3 * 4 = 14
765true and false or true = 1
7661 + 2 << 1 = 6
767
768=== All tests completed ===
769FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
770Result: ✅ PASSED
771
772==================== panic.fail.run.nc ====================
773Expected: PASS check, FAIL run
774FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
775Running panic.fail.run.nc...
776Test panic messageFINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
777Result: ✅ PASSED (runtime error as expected)
778
779==================== scope_leak.fail.nc ====================
780Expected: FAIL check (legacy)
781Error: undefined variable 'n'
782 --> tests/scope_leak.fail.nc:7:13
783 |
7847 | int x = n
785 | ^
786 | here
787
788Error: compilation halted: 1 errors emitted
789FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
790Result: ✅ PASSED (error as expected)
791
792==================== scope_leak_if.fail.nc ====================
793Expected: FAIL check (legacy)
794Error: undefined variable 'y'
795 --> tests/scope_leak_if.fail.nc:5:13
796 |
7975 | int z = y
798 | ^
799 | here
800
801Error: compilation halted: 1 errors emitted
802FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
803Result: ✅ PASSED (error as expected)
804
805==================== segfault.fail.run.nc ====================
806Expected: PASS check, FAIL run
807FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
808Running segfault.fail.run.nc...
809Error: signal 11:
810Stacktrace:
811 /tmp/ncc/segfault.fail.run(__nc_print_stacktrace+0x2e) [0x55fc19d9b34f]
812 /tmp/ncc/segfault.fail.run(__nc_signal_handler+0x31) [0x55fc19d9b45d]
813 /usr/lib/libc.so.6(+0x3e4d0) [0x7f367643e4d0]
814 /tmp/ncc/segfault.fail.run(+0x1223) [0x55fc19d9a223]
815FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
816Result: ✅ PASSED (runtime error as expected)
817
818==================== shadowing.nc ====================
819Expected: PASS check and run
820FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
821Running shadowing.nc...
8221
823hello
8241
825hello
826FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
827Result: ✅ PASSED
828
829==================== simple_slice.nc ====================
830Expected: PASS check and run
831FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
832Running simple_slice.nc...
833Array: [1, 2, 3, 4, 5]
834nums[1:3]: [2, 3, 4]
835FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
836Result: ✅ PASSED
837
838==================== spread_enum.nc ====================
839Expected: PASS check and run
840FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
841Running spread_enum.nc...
8420abc
843FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
844Result: ✅ PASSED
845
846==================== spread_import_enum.nc ====================
847Expected: PASS check and run
848FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
849Running spread_import_enum.nc...
8500abc
851FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
852Result: ✅ PASSED
853
854==================== spread_module.nc ====================
855Expected: PASS check and run
856FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
857Running spread_module.nc...
85842:hello world
859FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
860Result: ✅ PASSED
861
862==================== spread_prefix.nc ====================
863Expected: PASS check and run
864FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
865Running spread_prefix.nc...
866prefix:abc
867FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
868Result: ✅ PASSED
869
870==================== spread_simple.nc ====================
871Expected: PASS check and run
872FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
873Running spread_simple.nc...
874Direct spread test:
875hello world!
876Prefix:hello world!
877my_print called
878prefix:Custom:
879arg:hello
880arg:
881arg:world
882arg:!
883Custom:hello world!
884Done
885FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
886Result: ✅ PASSED
887
888==================== spread_variadic_forward.nc ====================
889Expected: PASS check and run
890FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
891Running spread_variadic_forward.nc...
89242:hello world
893FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
894Result: ✅ PASSED
895
896==================== std_log.nc ====================
897Expected: PASS check and run
898FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
899Running std_log.nc...
9002
9014
902[2025-12-10 01:19:49] [ERROR] This is an error message.
903FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
904Result: ✅ PASSED
905
906==================== str.nc ====================
907Expected: PASS check and run
908FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
909Running str.nc...
9100:c
9111:o
9122:o
9133:k
9144:i
9155:e
9166:
9177:🍪
9180:c
9191:o
9202:o
9213:k
9224:i
9235:e
9246:
9257:🍪
9260:👩🏾‍🌾
927FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
928Result: ✅ PASSED
929
930==================== struct_array.nc ====================
931Expected: PASS check and run
932FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
933Running struct_array.nc...
934Person created: Alice, 30
935Array created
936Index: 0
937Name: Alice, Age: 30
938Index: 1
939Name: Bob, Age: 25
940Done
941FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
942Result: ✅ PASSED
943
944==================== struct.nc ====================
945Expected: PASS check and run
946FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
947Running struct.nc...
948Name: Alice, Age: 30
949name Alice
950age 30
951Numerator: 11, Denominator: 32
952Numerator: 20, Denominator: 62
953Numerator: 40, Denominator: 62
954Name: Bob, Age: 25
955name Bob
956age 25
957Name: Alice, Age: 30
958name Alice
959age 30
960Name: Charlie, Age: 35
961name Charlie
962age 35
963FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
964Result: ✅ PASSED
965
966==================== testing.test.nc ====================
967Expected: PASS check and test
968FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
969Testing testing.test.nc...
970
971Test results: 1 passed, 0 failed
972FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
973Result: ✅ PASSED
974
975==================== time_format.nc ====================
976Expected: PASS check and run
977FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
978Running time_format.nc...
979Timestamp 1705315845: 2024-01-15 10:50:45
980Timestamp 0: 1970-01-01 00:00:00
981Date only: 2024-01-15
982Time only: 10:50:45
983Current time: 2025-12-10 01:19:50
984Leap year date: 2024-02-29
985All time.format tests passed!
986FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
987Result: ✅ PASSED
988
989==================== time_now.nc ====================
990Expected: PASS check and run
991FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
992Running time_now.nc...
993Current timestamp: 1765588790
994Timestamp after 1s: 1765588791
995FINISHED CPU 0.04 MEM 8128 MAXMEM 8128 STALE 1 MAXMEM_RSS 5952
996Result: ✅ PASSED
997
998==================== time_sleep.nc ====================
999Expected: PASS check and run
1000FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1001Running time_sleep.nc...
1002Start
1003End
1004FINISHED CPU 0.03 MEM 0 MAXMEM 8104 STALE 2 MAXMEM_RSS 5868
1005Result: ✅ PASSED
1006
1007==================== tuples_comprehensive.nc ====================
1008Expected: PASS check and run
1009FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1010Running tuples_comprehensive.nc...
1011--- Basic Tuple ---
1012t1[0]: 1
1013t1[1]: Hi
1014
1015--- Optional Tuple ---
1016result[0] is set
1017result[1] is none
1018
1019--- Return Tuple ---
1020vals: 6, -2
1021
1022--- Indexing ---
1023vals[0]: 1
1024vals[1]: hi
1025vals[2]: 2
1026
1027--- Destructuring ---
1028a: 1, b: 2
1029x: 10, y: Test
1030FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1031Result: ✅ PASSED
1032
1033==================== type_alias_func.nc ====================
1034Expected: PASS check and run
1035FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1036Running type_alias_func.nc...
1037ID: 123, Name: Alice
1038FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1039Result: ✅ PASSED
1040
1041==================== type_alias.nc ====================
1042Expected: PASS check and run
1043FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1044Running type_alias.nc...
1045Type alias test passed!
1046FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1047Result: ✅ PASSED
1048
1049==================== type_alias_nested.nc ====================
1050Expected: PASS check and run
1051FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1052Running type_alias_nested.nc...
1053x = 42
1054FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1055Result: ✅ PASSED
1056
1057==================== type_casts.nc ====================
1058Expected: PASS check and run
1059FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1060Running type_casts.nc...
1061int("123") = 123
1062str(456) = 456
1063bool(0) = 0
1064bool(1) = 1
1065bool(42) = 1
1066FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1067Result: ✅ PASSED
1068
1069==================== type_mismatch_arg.fail.nc ====================
1070Expected: FAIL check (legacy)
1071Error: no matching signature for function 'greet'
1072 --> tests/type_mismatch_arg.fail.nc:9:10
1073 |
10749 | greet(42)
1075 | ^
1076 |
1077
1078Error: type validation failed
1079FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1080Result: ✅ PASSED (error as expected)
1081
1082==================== type_mismatch_assignment.fail.nc ====================
1083Expected: FAIL check (legacy)
1084Error: cannot initialize variable 'message' of type 'str' with value of type 'int'
1085 --> tests/type_mismatch_assignment.fail.nc:5:5
1086 |
10875 | str message = 999
1088 | ^^^^^^^^^^^^^^^^^
1089 |
1090
1091Error: type validation failed
1092FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1093Result: ✅ PASSED (error as expected)
1094
1095==================== type_mismatch_println.fail.nc ====================
1096Expected: FAIL check (legacy)
1097Error: no matching signature for function 'io.println'
1098 --> tests/type_mismatch_println.fail.nc:5:15
1099 |
11005 | io.println(123)
1101 | ^
1102 |
1103
1104Error: type validation failed
1105FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1106Result: ✅ PASSED (error as expected)
1107
1108==================== variadic_debug.nc ====================
1109Expected: PASS check and run
1110FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1111Running variadic_debug.nc...
1112Starting sum
1113About to iterate
1114In loop, index: 0
1115Adding: 1
1116In loop, index: 1
1117Adding: 2
1118In loop, index: 2
1119Adding: 3
1120Final total: 6
1121Result: 6
1122FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1123Result: ✅ PASSED
1124
1125==================== variadic_iter.nc ====================
1126Expected: PASS check and run
1127FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1128Running variadic_iter.nc...
1129Starting sum
1130Adding: 1
1131Adding: 2
1132Adding: 3
1133Final total: 6
1134Result: 6
1135FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1136Result: ✅ PASSED
1137
1138==================== variadic.nc ====================
1139Expected: PASS check and run
1140FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1141Running variadic.nc...
1142Sum1 (10): 10
1143Sum2 (10+5): 15
1144Sum3 (10+5+10+20): 45
1145Hello World!
1146No Newline
1147Joined greetings: hellobonjourholaalohahallokonnichiwaannyeonghaseyo
1148FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1149Result: ✅ PASSED
1150
1151==================== variadic_simple.nc ====================
1152Expected: PASS check and run
1153FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1154Running variadic_simple.nc...
1155Got args
1156Done
1157FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
1158Result: ✅ PASSED
1159
1160==================== Summary ====================
1161Results: 67 passed, 0 failed
1162