diff options
| author | xackus <14938807+xackus@users.noreply.github.com> | 2020-11-06 22:36:18 +0100 |
|---|---|---|
| committer | xackus <14938807+xackus@users.noreply.github.com> | 2020-11-06 22:48:54 +0100 |
| commit | 5c8f7f81cdd10d4cc4c30e46cf37006a2f74f829 (patch) | |
| tree | ce9cd2bb4e0190e901613eb6cad8afdaf6484d2e /lib/std/heap.zig | |
| parent | 030f00391af6a46697db8031d5bd58e78eca2454 (diff) | |
| download | zig-5c8f7f81cdd10d4cc4c30e46cf37006a2f74f829.tar.gz zig-5c8f7f81cdd10d4cc4c30e46cf37006a2f74f829.zip | |
change debug.assert to testing.expect in tests
Diffstat (limited to 'lib/std/heap.zig')
| -rw-r--r-- | lib/std/heap.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/heap.zig b/lib/std/heap.zig index 3e74db386e..50a943c451 100644 --- a/lib/std/heap.zig +++ b/lib/std/heap.zig @@ -736,7 +736,7 @@ test "WasmPageAllocator internals" { if (comptime std.Target.current.isWasm()) { const conventional_memsize = WasmPageAllocator.conventional.totalPages() * mem.page_size; const initial = try page_allocator.alloc(u8, mem.page_size); - std.debug.assert(@ptrToInt(initial.ptr) < conventional_memsize); // If this isn't conventional, the rest of these tests don't make sense. Also we have a serious memory leak in the test suite. + testing.expect(@ptrToInt(initial.ptr) < conventional_memsize); // If this isn't conventional, the rest of these tests don't make sense. Also we have a serious memory leak in the test suite. var inplace = try page_allocator.realloc(initial, 1); testing.expectEqual(initial.ptr, inplace.ptr); |
