mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Use deinitFailures in expectFailure test
This commit is contained in:
parent
bfdf0bf916
commit
ac67eaf837
1 changed files with 1 additions and 4 deletions
|
@ -367,10 +367,7 @@ test "increfC, static data" {
|
||||||
}
|
}
|
||||||
|
|
||||||
test "expectFailure does something" {
|
test "expectFailure does something" {
|
||||||
//TODO: Fix whatever is causing this to error out
|
defer deinitFailures();
|
||||||
// defer deinitFailures();
|
|
||||||
// For now we're doing this instead:
|
|
||||||
defer std.testing.allocator.destroy(@ptrCast(*[4096]u8, failures));
|
|
||||||
|
|
||||||
try std.testing.expectEqual(getExpectFailures().len, 0);
|
try std.testing.expectEqual(getExpectFailures().len, 0);
|
||||||
expectFailed(1, 2, 3, 4);
|
expectFailed(1, 2, 3, 4);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue