this repo has no description
at main 726 B view raw
1const std = @import("std"); 2const aether = @import("aether"); 3 4pub fn main() !void { 5 std.debug.print("All your {s} are belong to us.\n", .{"codebase"}); 6} 7 8test "simple test" { 9 var list = std.ArrayList(i32).init(std.testing.allocator); 10 defer list.deinit(); // Try commenting this out and see if zig detects the memory leak! 11 try list.append(42); 12 try std.testing.expectEqual(@as(i32, 42), list.pop()); 13} 14 15test "fuzz example" { 16 const Context = struct { 17 fn testOne(context: @This(), input: []const u8) anyerror!void { 18 _ = context; 19 try std.testing.expect(!std.mem.eql(u8, "canyoufindme", input)); 20 } 21 }; 22 try std.testing.fuzz(Context{}, Context.testOne, .{}); 23}