diff options
| author | Robby Zambito <contact@robbyzambito.me> | 2025-04-02 22:58:47 -0400 | 
|---|---|---|
| committer | Robby Zambito <contact@robbyzambito.me> | 2025-04-06 13:08:09 -0400 | 
| commit | 0c0a678811bb92bb1564f92cd05cf916921c215a (patch) | |
| tree | b13c38d345374d37b46497b6a65f647937f4f89e /src | |
| parent | c391b4da5555cb2b19f17e6479ec83c15d337ea3 (diff) | |
Remove tests
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.zig | 18 | 
1 files changed, 0 insertions, 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;  | 
