zig/test/behavior/wasm.zig

9 lines
226 B
Zig
Raw Normal View History

2020-06-02 12:26:49 +01:00
const std = @import("std");
const expect = std.testing.expect;
test "memory size and grow" {
var prev = @wasmMemorySize(0);
try expect(prev == @wasmMemoryGrow(0, 1));
try expect(prev + 1 == @wasmMemorySize(0));
2020-06-02 12:26:49 +01:00
}