small fixes

This commit is contained in:
2025-06-23 17:00:58 +02:00
parent e15715f86d
commit 26598fe6f2
6 changed files with 36 additions and 46 deletions

View File

@@ -1,4 +1,8 @@
func run_test[x: String] : I64
// requires stdin
if strcmp(x, "guess_number.zr") == 0
return 0
printf("\033[93mBuilding %s...\033[0m", x)
let cmd: String = String.concat("./target/release/zern examples/", x)
@@ -14,9 +18,8 @@ func run_test[x: String] : I64
if system("./out") != 0
exit(1)
let run_end_time: I64 = OS.time()
printf("\033[93mRunning %s...\033[0m %ldms\n", x, run_end_time - run_start_time)
return 0
func main[] : I64
system("cargo build --release")