Last active 5 days ago

insidiousfiddler's Avatar insidiousfiddler revised this gist 5 days ago. Go to revision

1 file changed, 936 insertions

ncc-test-verbose.log(file created)

@@ -0,0 +1,936 @@
1 + ❯ make test-verbose
2 + cargo build --release
3 + warning: variable `has_hex_digit` is assigned to, but never used
4 + --> src/compiler/syntax/lexer.rs:232:29
5 + |
6 + 232 | let mut has_hex_digit = false;
7 + | ^^^^^^^^^^^^^
8 + |
9 + = note: consider using `_has_hex_digit` instead
10 + = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
11 +
12 + warning: value assigned to `has_hex_digit` is never read
13 + --> src/compiler/syntax/lexer.rs:237:29
14 + |
15 + 237 | ... has_hex_digit = true;
16 + | ^^^^^^^^^^^^^
17 + |
18 + = help: maybe it is overwritten before being read?
19 + = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
20 +
21 + warning: variable `has_octal_digit` is assigned to, but never used
22 + --> src/compiler/syntax/lexer.rs:254:29
23 + |
24 + 254 | let mut has_octal_digit = false;
25 + | ^^^^^^^^^^^^^^^
26 + |
27 + = note: consider using `_has_octal_digit` instead
28 +
29 + warning: value assigned to `has_octal_digit` is never read
30 + --> src/compiler/syntax/lexer.rs:259:29
31 + |
32 + 259 | ... has_octal_digit = true;
33 + | ^^^^^^^^^^^^^^^
34 + |
35 + = help: maybe it is overwritten before being read?
36 +
37 + warning: multiple methods are never used
38 + --> src/compiler/backend/asm.rs:46:8
39 + |
40 + 14 | impl AsmBackend {
41 + | --------------- methods in this implementation
42 + ...
43 + 46 | fn emit_syscall_write(&self, out: &mut String) {
44 + | ^^^^^^^^^^^^^^^^^^
45 + ...
46 + 51 | fn emit_syscall_exit(&self, out: &mut String) {
47 + | ^^^^^^^^^^^^^^^^^
48 + ...
49 + 56 | fn emit_syscall_mmap(&self, out: &mut String) {
50 + | ^^^^^^^^^^^^^^^^^
51 + ...
52 + 62 | fn emit_syscall_read(&self, out: &mut String) {
53 + | ^^^^^^^^^^^^^^^^^
54 + ...
55 + 67 | fn emit_syscall_open(&self, out: &mut String) {
56 + | ^^^^^^^^^^^^^^^^^
57 + ...
58 + 72 | fn emit_syscall_close(&self, out: &mut String) {
59 + | ^^^^^^^^^^^^^^^^^^
60 + ...
61 + 77 | fn emit_syscall_stat(&self, out: &mut String) {
62 + | ^^^^^^^^^^^^^^^^^
63 + ...
64 + 82 | fn emit_syscall_getdents64(&self, out: &mut String) {
65 + | ^^^^^^^^^^^^^^^^^^^^^^^
66 + ...
67 + 87 | fn emit_syscall_unlink(&self, out: &mut String) {
68 + | ^^^^^^^^^^^^^^^^^^^
69 + ...
70 + 92 | fn emit_syscall_access(&self, out: &mut String) {
71 + | ^^^^^^^^^^^^^^^^^^^
72 + ...
73 + 97 | fn emit_syscall_nanosleep(&self, out: &mut String) {
74 + | ^^^^^^^^^^^^^^^^^^^^^^
75 + ...
76 + 102 | fn emit_syscall_clock_gettime(&self, out: &mut String) {
77 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^
78 + ...
79 + 125 | fn stat_st_size_offset(&self) -> usize {
80 + | ^^^^^^^^^^^^^^^^^^^
81 + |
82 + = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
83 +
84 + warning: method `lower_global_function_call` is never used
85 + --> src/compiler/ir/mod.rs:3776:8
86 + |
87 + 664 | impl<'a> FunctionBuilder<'a> {
88 + | ---------------------------- method in this implementation
89 + ...
90 + 3776 | fn lower_global_function_call(
91 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^
92 +
93 + warning: `ncc` (lib) generated 6 warnings
94 + Finished `release` profile [optimized] target(s) in 0.02s
95 + Running tests with verbose output...
96 +
97 + ==================== array_range.nc ====================
98 + Expected: PASS check and run
99 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
100 + Running array_range.nc...
101 + --- Basic Slice ---
102 + [0, 1, 1, 2, 3]
103 + [1, 2, 3, 5]
104 +
105 + --- Step Slice ---
106 + [0, 1, 3, 8, 21, 55]
107 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
108 + Result: ✅ PASSED
109 +
110 + ==================== array_simple.nc ====================
111 + Expected: PASS check and run
112 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
113 + Running array_simple.nc...
114 + Array created
115 + Index: 0
116 + Index: 1
117 + Index: 2
118 + Done
119 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
120 + Result: ✅ PASSED
121 +
122 + ==================== assert.nc ====================
123 + Expected: PASS check and run
124 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
125 + Running assert.nc...
126 + Assert passed: x < y
127 + Assert passed: x != y
128 + Assert passed: true
129 + All assertions passed!
130 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
131 + Result: ✅ PASSED
132 +
133 + ==================== async_await.fail.nc ====================
134 + Expected: FAIL check (legacy)
135 + Error: expected function call after 'async'
136 + --> tests/async_await.fail.nc:12:26
137 + |
138 + 12 | int* future = async 5
139 + | ^
140 + | here
141 +
142 + Error: compilation halted: 1 errors emitted
143 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
144 + Result: ✅ PASSED (error as expected)
145 +
146 + ==================== async_error_handling.nc ====================
147 + Expected: PASS check and run
148 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
149 + Running async_error_handling.nc...
150 + Success! Value: 42
151 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
152 + Result: ✅ PASSED
153 +
154 + ==================== async.nc ====================
155 + Expected: PASS check and run
156 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
157 + Running async.nc...
158 + Result from async call: 5050
159 + Result 2: 5050
160 + Result 3: 5050
161 + All async operations completed!
162 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
163 + Result: ✅ PASSED
164 +
165 + ==================== async_type_mismatch.fail.nc ====================
166 + Expected: FAIL check (legacy)
167 + Error: cannot initialize variable 'result' of type 'int' with value of type 'int*'
168 + --> tests/async_type_mismatch.fail.nc:10:5
169 + |
170 + 10 | int result = async returnsInt()
171 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
172 + |
173 +
174 + Error: cannot await non-Future type 'int'
175 + --> tests/async_type_mismatch.fail.nc:14:19
176 + |
177 + 14 | int y = await x
178 + | ^
179 + |
180 +
181 + Error: type validation failed
182 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
183 + Result: ✅ PASSED (error as expected)
184 +
185 + ==================== bool.nc ====================
186 + Expected: PASS check and run
187 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
188 + Running bool.nc...
189 + True is: true
190 + False is: false
191 + t is true
192 + f is false
193 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
194 + Result: ✅ PASSED
195 +
196 + ==================== builtins_combined.nc ====================
197 + Expected: PASS check and run
198 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
199 + Running builtins_combined.nc...
200 + new(int) = 0
201 + int("789") = 789
202 + Assert passed: val = 100
203 + str(new(int)) = "0"
204 + All builtin function tests passed!
205 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
206 + Result: ✅ PASSED
207 +
208 + ==================== byte_test.nc ====================
209 + Expected: PASS check and test
210 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
211 + Testing byte_test.nc...
212 + No tests found in tests/byte_test.nc
213 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
214 + Result: ✅ PASSED
215 +
216 + ==================== char_conversion.nc ====================
217 + Expected: PASS check and run
218 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
219 + Running char_conversion.nc...
220 + ASCII 'A' test passed
221 + ASCII 'z' test passed
222 + Digit '0' test passed
223 + Special chars test passed
224 + 2-byte UTF-8: é
225 + Greek alpha: α
226 + Chinese 中: 中
227 + Heart: ❤
228 + Emoji: 😀
229 + Thumbs up: 👍
230 + Invalid surrogate: �
231 + Over max unicode: �
232 + Null char length: should work
233 + Max ASCII (DEL): passed
234 + Max unicode codepoint: 􏿿
235 + Byte to char conversion passed
236 + int(char) round-trip passed
237 + byte(char) conversion passed
238 + All char() tests passed!
239 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
240 + Result: ✅ PASSED
241 +
242 + ==================== char_test.nc ====================
243 + Expected: PASS check and test
244 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
245 + Testing char_test.nc...
246 + No tests found in tests/char_test.nc
247 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
248 + Result: ✅ PASSED
249 +
250 + ==================== comparison.nc ====================
251 + Expected: PASS check and run
252 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
253 + Running comparison.nc...
254 + String: abc
255 + Length: 3
256 + 0 < 3: true
257 + 1 < 3: true
258 + 2 < 3: true
259 + 3 < 3: false (CORRECT)
260 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
261 + Result: ✅ PASSED
262 +
263 + ==================== compound.nc ====================
264 + Expected: PASS check and run
265 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
266 + Running compound.nc...
267 + Numerator: 20, Denominator: 31
268 + Numerator: 40, Denominator: 31
269 + x = 15
270 + x = 12
271 + x = 24
272 + x = 6
273 + x = 2
274 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
275 + Result: ✅ PASSED
276 +
277 + ==================== enum.nc ====================
278 + Expected: PASS check and run
279 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
280 + Running enum.nc...
281 + complete
282 + failed
283 + pending
284 + 1
285 + 0
286 + stat1 is Complete
287 + stat2 is not Pending
288 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
289 + Result: ✅ PASSED
290 +
291 + ==================== error_handling.nc ====================
292 + Expected: PASS check and run
293 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
294 + Running error_handling.nc...
295 + Result: 5
296 + Got expected error: division by zero
297 + Found at index: 2
298 + Correctly not found
299 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
300 + Result: ✅ PASSED
301 +
302 + ==================== file_buffer.nc ====================
303 + Expected: PASS check and run
304 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
305 + Running file_buffer.nc...
306 + Wrote 20 bytes
307 + Read 20 bytes
308 + File contents: ABCDEFGHIJKLMNOPQRST
309 + Content verified!
310 + Seek test passed!
311 + SEEK_CUR test passed!
312 + SEEK_END test passed!
313 + Chunked reading test passed! Read 20 bytes in 4 chunks
314 + write_str test passed!
315 + Original: Hello, world!
316 + Read back: Hello, world!
317 + String to bytes round-trip passed!
318 + All buffer I/O tests passed!
319 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
320 + Result: ✅ PASSED
321 +
322 + ==================== functions_as_values.nc ====================
323 + Expected: PASS check and run
324 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
325 + Running functions_as_values.nc...
326 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
327 + Result: ✅ PASSED
328 +
329 + ==================== int_conversions.nc ====================
330 + Expected: PASS check and run
331 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
332 + Running int_conversions.nc...
333 + int() conversions: 123, 456
334 + uint() conversions: 789, 100
335 + bigint() conversions: 123456789, 999
336 + type conversions: int=42, uint=42, bigint=42
337 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
338 + Result: ✅ PASSED
339 +
340 + ==================== int_decimal_trunc.nc ====================
341 + Expected: PASS check and run
342 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
343 + Running int_decimal_trunc.nc...
344 + decimal to int (truncated): 3.14d -> 3, 2.99d -> 2, -1.5d -> -3
345 + decimal to uint (truncated): 3.14d -> 3, 2.99d -> 2
346 + decimal to bigint (truncated): 3.14d -> 3
347 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
348 + Result: ✅ PASSED
349 +
350 + ==================== int_hex_octal.nc ====================
351 + Expected: PASS check and run
352 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
353 + Running int_hex_octal.nc...
354 + hex values: 0xFF=255, 0xff=255, 0x10=16, 0xABCD=43981
355 + octal values: 0o777=511, 0o10=8, 0o123=83
356 + 0xFF + 0o10 = 263
357 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
358 + Result: ✅ PASSED
359 +
360 + ==================== int_type_incompatibility.fail.nc ====================
361 + Expected: FAIL check (legacy)
362 + Error: cannot mix bigint with int or uint in arithmetic operator '+'
363 + --> tests/int_type_incompatibility.fail.nc:8:19
364 + |
365 + 8 | int result1 = i + b // Error: cannot mix bigint with int
366 + | ^
367 + |
368 + --> tests/int_type_incompatibility.fail.nc:8:23
369 + |
370 + 8 | int result1 = i + b // Error: cannot mix bigint with int
371 + | ^
372 + |
373 +
374 + Error: cannot mix bigint with int or uint in arithmetic operator '+'
375 + --> tests/int_type_incompatibility.fail.nc:9:22
376 + |
377 + 9 | bigint result2 = b + i // Error: cannot mix bigint with int
378 + | ^
379 + |
380 + --> tests/int_type_incompatibility.fail.nc:9:26
381 + |
382 + 9 | bigint result2 = b + i // Error: cannot mix bigint with int
383 + | ^
384 + |
385 +
386 + Error: cannot mix bigint with int or uint in arithmetic operator '*'
387 + --> tests/int_type_incompatibility.fail.nc:10:19
388 + |
389 + 10 | int result3 = i * b // Error: cannot mix bigint with int
390 + | ^
391 + |
392 + --> tests/int_type_incompatibility.fail.nc:10:23
393 + |
394 + 10 | int result3 = i * b // Error: cannot mix bigint with int
395 + | ^
396 + |
397 +
398 + Error: type validation failed
399 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
400 + Result: ✅ PASSED (error as expected)
401 +
402 + ==================== int_types.nc ====================
403 + Expected: PASS check and run
404 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
405 + Running int_types.nc...
406 + int values: 42, -100
407 + uint values: 100, 0
408 + bigint values: 0, 999
409 + converted from string: int=123, uint=456, bigint=789
410 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
411 + Result: ✅ PASSED
412 +
413 + ==================== listdir.nc ====================
414 + Expected: PASS check and run
415 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
416 + Running listdir.nc...
417 + === Using io.stat (single file) ===
418 + README.md: size=786, is_dir=0, mode=420
419 +
420 + === Using io.readdir (directory listing) ===
421 + Found 13 entries:
422 + [dir] .github: 4096 bytes
423 + [file] Makefile: 6916 bytes
424 + [dir] tests: 4096 bytes
425 + [dir] target: 4096 bytes
426 + [file] .gitignore: 708 bytes
427 + [dir] .git: 4096 bytes
428 + [file] LICENSE: 11356 bytes
429 + [dir] .idea: 4096 bytes
430 + [dir] src: 4096 bytes
431 + [file] Cargo.lock: 6566 bytes
432 + [file] Cargo.toml: 238 bytes
433 + [dir] std: 4096 bytes
434 + [file] README.md: 786 bytes
435 +
436 + === Recursive directory listing ===
437 + [file] Makefile
438 + [dir] tests/
439 + [file] variadic_debug.nc
440 + [file] int_hex_octal.nc
441 + [file] testing.test.nc
442 + [file] scope_leak_if.fail.nc
443 + [file] segfault.fail.run.nc
444 + [file] struct.nc
445 + [file] struct_array.nc
446 + [file] panic.fail.run.nc
447 + [file] functions_as_values.nc
448 + [file] variadic_iter.nc
449 + [file] error_handling.nc
450 + [file] async.nc
451 + [file] variadic.nc
452 + [file] nested_struct_array.nc
453 + [file] builtins_combined.nc
454 + [file] enum.nc
455 + [file] type_casts.nc
456 + [file] simple_slice.nc
457 + [file] listdir.nc
458 + [file] scope_leak.fail.nc
459 + [file] char_conversion.nc
460 + [file] variadic_simple.nc
461 + [file] comparison.nc
462 + [file] int_types.nc
463 + [file] type_alias.nc
464 + [file] str.nc
465 + [file] loops.nc
466 + [file] tuples_comprehensive.nc
467 + [file] array_simple.nc
468 + [file] type_alias_func.nc
469 + [file] file_buffer.nc
470 + [file] async_type_mismatch.fail.nc
471 + [file] int_conversions.nc
472 + [file] char_test.nc
473 + [file] new.nc
474 + [file] assert.nc
475 + [file] loop_scope.nc
476 + [file] shadowing.nc
477 + [file] type_alias_nested.nc
478 + [file] int_decimal_trunc.nc
479 + [file] array_range.nc
480 + [file] byte_test.nc
481 + [file] bool.nc
482 + [file] async_await.fail.nc
483 + [file] operators.nc
484 + [file] time_now.nc
485 + [file] compound.nc
486 + [file] int_type_incompatibility.fail.nc
487 + [file] async_error_handling.nc
488 + [file] time_sleep.nc
489 + [file] .gitignore
490 + [file] LICENSE
491 + [dir] src/
492 + [file] lib.rs
493 + [dir] compiler/
494 + [dir] passes/
495 + [file] mod.rs
496 + [file] optimizations.rs
497 + [dir] syntax/
498 + [file] ast.rs
499 + [file] mod.rs
500 + [file] lexer.rs
501 + [file] parser.rs
502 + [file] ast_printer.rs
503 + [dir] source/
504 + [file] mod.rs
505 + [file] driver.rs
506 + [file] target.rs
507 + [file] mod.rs
508 + [dir] hir/
509 + [file] mod.rs
510 + [dir] backend/
511 + [file] mod.rs
512 + [file] asm.rs
513 + [dir] diagnostics/
514 + [file] mod.rs
515 + [file] runtime.rs
516 + [dir] ir/
517 + [file] mod.rs
518 + [file] cli.rs
519 + [file] main.rs
520 + [file] Cargo.lock
521 + [file] Cargo.toml
522 + [dir] std/
523 + [file] os.nc
524 + [file] math.nc
525 + [file] io.nc
526 + [file] time.nc
527 + [file] README.md
528 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
529 + Result: ✅ PASSED
530 +
531 + ==================== loop_scope.nc ====================
532 + Expected: PASS check and run
533 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
534 + Running loop_scope.nc...
535 + n: 0 1
536 + n: 1 2
537 + n: 2 3
538 + x: 2
539 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
540 + Result: ✅ PASSED
541 +
542 + ==================== loops.nc ====================
543 + Expected: PASS check and run
544 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
545 + Running loops.nc...
546 + a = 0
547 + a = 1
548 + a = 2
549 + a = 3
550 + a = 4
551 + a = 5
552 + a = 6
553 + a = 7
554 + a = 8
555 + a = 9
556 + b = 2
557 + b = 1
558 + 1
559 + 2
560 + 3
561 + 4
562 + 5
563 + 6
564 + 7
565 + 8
566 + 9
567 + 10
568 + 11
569 + 12
570 + 13
571 + 14
572 + 15
573 + 16
574 + 17
575 + 18
576 + 19
577 + 20
578 + 1
579 + 3
580 + 5
581 + 7
582 + 9
583 + 11
584 + 13
585 + 15
586 + 17
587 + 19
588 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
589 + Result: ✅ PASSED
590 +
591 + ==================== nested_struct_array.nc ====================
592 + Expected: PASS check and run
593 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
594 + Running nested_struct_array.nc...
595 + All tests passed!
596 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
597 + Result: ✅ PASSED
598 +
599 + ==================== new.nc ====================
600 + Expected: PASS check and run
601 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
602 + Running new.nc...
603 + new(int) = 0
604 + new(bool) = 0
605 + new(str) = ""
606 + new(int) again = 0
607 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
608 + Result: ✅ PASSED
609 +
610 + ==================== operators.nc ====================
611 + Expected: PASS check and run
612 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
613 + Running operators.nc...
614 + === Arithmetic Operators ===
615 + a = 10, b = 3
616 + a + b = 13
617 + a - b = 7
618 + a * b = 30
619 + a / b = 3
620 + a % b = 1
621 + a ** b = 1000
622 +
623 + === Comparison Operators ===
624 + a == b: 0
625 + a != b: 1
626 + a < b: 0
627 + a > b: 1
628 + a <= b: 0
629 + a >= b: 1
630 +
631 + === Logical Operators ===
632 + x = 1, y = 0
633 + x and y: 0
634 + x or y: 1
635 + not x: 0
636 + not y: 1
637 +
638 + === Bitwise Operators ===
639 + c = 5, d = 3
640 + c << 1 = 10
641 + c >> 1 = 2
642 + c & d = 1
643 + c | d = 7
644 + c ^ d = 6
645 + !c = -6
646 +
647 + === Concatenation Operator ===
648 + s1 <> s2 <> s3 = Hello World
649 + arr1 <> arr2: concatenated (array length: 771)
650 +
651 + === Unary Operators ===
652 + e = 42
653 + -e = -42
654 + !e = -43
655 + f = 1
656 + not f = 0
657 +
658 + === Operator Precedence ===
659 + 2 + 3 * 4 = 14
660 + true and false or true = 1
661 + 1 + 2 << 1 = 6
662 +
663 + === All tests completed ===
664 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
665 + Result: ✅ PASSED
666 +
667 + ==================== panic.fail.run.nc ====================
668 + Expected: PASS check, FAIL run
669 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
670 + Running panic.fail.run.nc...
671 + Test panic messageFINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
672 + Result: ✅ PASSED (runtime error as expected)
673 +
674 + ==================== scope_leak.fail.nc ====================
675 + Expected: FAIL check (legacy)
676 + Error: undefined variable 'n'
677 + --> tests/scope_leak.fail.nc:7:13
678 + |
679 + 7 | int x = n
680 + | ^
681 + | here
682 +
683 + Error: compilation halted: 1 errors emitted
684 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
685 + Result: ✅ PASSED (error as expected)
686 +
687 + ==================== scope_leak_if.fail.nc ====================
688 + Expected: FAIL check (legacy)
689 + Error: undefined variable 'y'
690 + --> tests/scope_leak_if.fail.nc:5:13
691 + |
692 + 5 | int z = y
693 + | ^
694 + | here
695 +
696 + Error: compilation halted: 1 errors emitted
697 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
698 + Result: ✅ PASSED (error as expected)
699 +
700 + ==================== segfault.fail.run.nc ====================
701 + Expected: PASS check, FAIL run
702 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
703 + Running segfault.fail.run.nc...
704 + Error: signal 11:
705 + Stacktrace:
706 + /tmp/ncc/segfault.fail.run(__nc_print_stacktrace+0x2e) [0x56468905e148]
707 + /tmp/ncc/segfault.fail.run(__nc_signal_handler+0x31) [0x56468905e256]
708 + /usr/lib/libc.so.6(+0x3e4d0) [0x7f39ea03e4d0]
709 + /tmp/ncc/segfault.fail.run(+0x1213) [0x56468905d213]
710 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
711 + Result: ✅ PASSED (runtime error as expected)
712 +
713 + ==================== shadowing.nc ====================
714 + Expected: PASS check and run
715 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
716 + Running shadowing.nc...
717 + 1
718 + hello
719 + 1
720 + hello
721 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
722 + Result: ✅ PASSED
723 +
724 + ==================== simple_slice.nc ====================
725 + Expected: PASS check and run
726 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
727 + Running simple_slice.nc...
728 + Array: [1, 2, 3, 4, 5]
729 + nums[1:3]: [2, 3, 4]
730 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
731 + Result: ✅ PASSED
732 +
733 + ==================== str.nc ====================
734 + Expected: PASS check and run
735 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
736 + Running str.nc...
737 + 0:139980690964480
738 + 1:139980690944000
739 + 2:139980690923520
740 + 3:139980690903040
741 + 4:139980690882560
742 + 5:139980690862080
743 + 6:139980690841600
744 + 7:139980690821120
745 + 0:139980690800640
746 + 1:139980690780160
747 + 2:139980690759680
748 + 3:139980690739200
749 + 4:139980690718720
750 + 5:139980690698240
751 + 6:139980690677760
752 + 7:139980690657280
753 + 0:139980690636800
754 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
755 + Result: ✅ PASSED
756 +
757 + ==================== struct_array.nc ====================
758 + Expected: PASS check and run
759 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
760 + Running struct_array.nc...
761 + Person created: Alice, 30
762 + Array created
763 + Index: 0
764 + Name: Alice, Age: 30
765 + Index: 1
766 + Name: Bob, Age: 25
767 + Done
768 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
769 + Result: ✅ PASSED
770 +
771 + ==================== struct.nc ====================
772 + Expected: PASS check and run
773 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
774 + Running struct.nc...
775 + Name: Alice, Age: 30
776 + name Alice
777 + age 30
778 + Numerator: 11, Denominator: 32
779 + Numerator: 20, Denominator: 62
780 + Numerator: 40, Denominator: 62
781 + Name: Bob, Age: 25
782 + name Bob
783 + age 25
784 + Name: Alice, Age: 30
785 + name Alice
786 + age 30
787 + Name: Charlie, Age: 35
788 + name Charlie
789 + age 35
790 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
791 + Result: ✅ PASSED
792 +
793 + ==================== testing.test.nc ====================
794 + Expected: PASS check and test
795 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
796 + Testing testing.test.nc...
797 +
798 + Test results: 1 passed, 0 failed
799 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
800 + Result: ✅ PASSED
801 +
802 + ==================== time_now.nc ====================
803 + Expected: PASS check and run
804 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
805 + Running time_now.nc...
806 + Current timestamp: 1764519641
807 + Timestamp after 1s: 1764519642
808 + FINISHED CPU 0.03 MEM 7716 MAXMEM 7716 STALE 1 MAXMEM_RSS 5540
809 + Result: ✅ PASSED
810 +
811 + ==================== time_sleep.nc ====================
812 + Expected: PASS check and run
813 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
814 + Running time_sleep.nc...
815 + Start
816 + End
817 + FINISHED CPU 0.03 MEM 0 MAXMEM 7708 STALE 2 MAXMEM_RSS 5400
818 + Result: ✅ PASSED
819 +
820 + ==================== tuples_comprehensive.nc ====================
821 + Expected: PASS check and run
822 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
823 + Running tuples_comprehensive.nc...
824 + --- Basic Tuple ---
825 + t1[0]: 1
826 + t1[1]: Hi
827 +
828 + --- Optional Tuple ---
829 + result[0] is set
830 + result[1] is none
831 +
832 + --- Return Tuple ---
833 + vals: 6, -2
834 +
835 + --- Indexing ---
836 + vals[0]: 1
837 + vals[1]: hi
838 + vals[2]: 2
839 +
840 + --- Destructuring ---
841 + a: 1, b: 2
842 + x: 10, y: Test
843 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
844 + Result: ✅ PASSED
845 +
846 + ==================== type_alias_func.nc ====================
847 + Expected: PASS check and run
848 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
849 + Running type_alias_func.nc...
850 + ID: 123, Name: Alice
851 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
852 + Result: ✅ PASSED
853 +
854 + ==================== type_alias.nc ====================
855 + Expected: PASS check and run
856 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
857 + Running type_alias.nc...
858 + Type alias test passed!
859 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
860 + Result: ✅ PASSED
861 +
862 + ==================== type_alias_nested.nc ====================
863 + Expected: PASS check and run
864 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
865 + Running type_alias_nested.nc...
866 + x = 42
867 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
868 + Result: ✅ PASSED
869 +
870 + ==================== type_casts.nc ====================
871 + Expected: PASS check and run
872 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
873 + Running type_casts.nc...
874 + int("123") = 123
875 + str(456) = 456
876 + bool(0) = 0
877 + bool(1) = 1
878 + bool(42) = 1
879 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
880 + Result: ✅ PASSED
881 +
882 + ==================== variadic_debug.nc ====================
883 + Expected: PASS check and run
884 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
885 + Running variadic_debug.nc...
886 + Starting sum
887 + About to iterate
888 + In loop, index: 0
889 + Adding: 1
890 + In loop, index: 1
891 + Adding: 2
892 + In loop, index: 2
893 + Adding: 3
894 + Final total: 6
895 + Result: 6
896 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
897 + Result: ✅ PASSED
898 +
899 + ==================== variadic_iter.nc ====================
900 + Expected: PASS check and run
901 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
902 + Running variadic_iter.nc...
903 + Starting sum
904 + Adding: 1
905 + Adding: 2
906 + Adding: 3
907 + Final total: 6
908 + Result: 6
909 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
910 + Result: ✅ PASSED
911 +
912 + ==================== variadic.nc ====================
913 + Expected: PASS check and run
914 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
915 + Running variadic.nc...
916 + Sum1 (10): 10
917 + Sum2 (10+5): 15
918 + Sum3 (10+5+10+20): 45
919 + Hello World!
920 + No Newline
921 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
922 + Result: ✅ PASSED
923 +
924 + ==================== variadic_simple.nc ====================
925 + Expected: PASS check and run
926 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
927 + Running variadic_simple.nc...
928 + Got args
929 + Done
930 + FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
931 + Result: ✅ PASSED
932 +
933 + ==================== Summary ====================
934 + Results: 50 passed, 0 failed
935 + ~/git/nc master +7 9s
936 +
Newer Older