mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-17 15:17:12 +00:00
Fix playground test call, don't err on bad ext
This commit is contained in:
parent
193fafa393
commit
aac3d24c21
4 changed files with 3 additions and 4 deletions
2
.github/workflows/ci_zig.yml
vendored
2
.github/workflows/ci_zig.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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| {
|
||||
|
|
|
@ -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", .{});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue