From 62e6fbbff6e91bb568a3a189a1715e798c3e12fa Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Wed, 2 Apr 2025 22:58:47 -0400 Subject: Remove tests --- src/main.zig | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/main.zig b/src/main.zig index e7df07d..5989e40 100644 --- a/src/main.zig +++ b/src/main.zig @@ -79,24 +79,6 @@ pub fn main() !void { _ = try sock.sendTo(dest_addr, msg_bytes); } -test "simple test" { - var list = std.ArrayList(i32).init(std.testing.allocator); - defer list.deinit(); // Try commenting this out and see if zig detects the memory leak! - try list.append(42); - try std.testing.expectEqual(@as(i32, 42), list.pop()); -} - -test "fuzz example" { - const Context = struct { - fn testOne(context: @This(), input: []const u8) anyerror!void { - _ = context; - // Try passing `--fuzz` to `zig build test` and see if it manages to fail this test case! - try std.testing.expect(!std.mem.eql(u8, "canyoufindme", input)); - } - }; - try std.testing.fuzz(Context{}, Context.testOne, .{}); -} - const builtin = @import("builtin"); const std = @import("std"); const Allocator = std.mem.Allocator; -- cgit