finally add real logical operators

This commit is contained in:
2025-12-26 11:52:23 +01:00
parent 270386da95
commit db2e639cc8
16 changed files with 96 additions and 49 deletions

View File

@@ -1,5 +1,5 @@
func run_test[x: str] : void
if str.equal(x, "puzzles") | str.equal(x, "raylib.zr") | str.equal(x, "x11.zr") | str.equal(x, "sqlite_todo.zr")
if str.equal(x, "puzzles") || str.equal(x, "raylib.zr") || str.equal(x, "x11.zr") || str.equal(x, "sqlite_todo.zr")
io.print("\033[93mSkipping ")
io.print(x)
io.println("...\033[0m")
@@ -19,7 +19,7 @@ func run_test[x: str] : void
io.print_i64(build_end_time - build_start_time)
io.println("ms")
if str.find(x, "/aoc") != -1 | str.equal(x, "guess_number.zr") | str.equal(x, "tcp_server.zr")
if str.find(x, "/aoc") != -1 || str.equal(x, "guess_number.zr") || str.equal(x, "tcp_server.zr")
io.print("\033[93mSkipping ")
io.print(x)
io.println("...\033[0m")
@@ -33,6 +33,9 @@ func run_test[x: str] : void
if str.equal(x, "curl.zr")
if os.shell("./out http://example.com") != 0
os.exit(1)
else if str.equal(x, "tokenizer.zr")
if os.shell("./out examples/tokenizer.zr") != 0
os.exit(1)
else
if os.shell("./out") != 0
os.exit(1)