mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +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" {
|
||||
//TODO: Fix whatever is causing this to error out
|
||||
// defer deinitFailures();
|
||||
// For now we're doing this instead:
|
||||
defer std.testing.allocator.destroy(@ptrCast(*[4096]u8, failures));
|
||||
defer deinitFailures();
|
||||
|
||||
try std.testing.expectEqual(getExpectFailures().len, 0);
|
||||
expectFailed(1, 2, 3, 4);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue