Fix playground test call, don't err on bad ext

This commit is contained in:
Jared Ramirez 2025-09-26 09:32:12 -04:00
parent 193fafa393
commit aac3d24c21
No known key found for this signature in database
GPG key ID: 41158983F521D68C
4 changed files with 3 additions and 4 deletions

View file

@ -62,7 +62,7 @@ jobs:
- name: Run Playground Tests
run: |
zig build playground-test -Doptimize=ReleaseSmall -- --verbose
zig build test-playground -Doptimize=ReleaseSmall -- --verbose
zig-tests:
needs: check-once

View file

@ -1832,7 +1832,6 @@ fn checkExpr(self: *Self, expr_idx: CIR.Expr.Idx, rank: types_mod.Rank, expected
try self.updateVar(expr_var, .err, rank);
}
} else {
std.debug.assert(false);
try self.updateVar(expr_var, .err, rank);
}
},
@ -1860,7 +1859,6 @@ fn checkExpr(self: *Self, expr_idx: CIR.Expr.Idx, rank: types_mod.Rank, expected
);
try self.types.setVarRedirect(expr_var, ext_instantiated_var);
} else {
std.debug.assert(false);
try self.updateVar(expr_var, .err, rank);
}
},

View file

@ -1028,6 +1028,7 @@ pub const Store = struct {
// Check if this is a Bool (2 tags with no payload) as a special case
// This is a legitimate layout optimization for boolean tag unions
// TODO: Is this necessary?
if (num_tags == 2) {
var is_bool = true;
for (tags_args) |tag_args| {

View file

@ -902,7 +902,7 @@ pub fn main() !void {
if (std.mem.eql(u8, arg, "--verbose")) {
verbose_mode = true;
} else if (std.mem.eql(u8, arg, "--help")) {
try stdout.writer().print("Usage: playground-test [options] [wasm-path]\n", .{});
try stdout.writer().print("Usage: test-playground [options] [wasm-path]\n", .{});
try stdout.writer().print("Options:\n", .{});
try stdout.writer().print(" --verbose Enable verbose mode\n", .{});
try stdout.writer().print(" --wasm-path PATH Path to the playground WASM file\n", .{});