summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2025-04-02 22:58:47 -0400
committerRobby Zambito <contact@robbyzambito.me>2025-04-02 23:00:25 -0400
commit62e6fbbff6e91bb568a3a189a1715e798c3e12fa (patch)
treeb13c38d345374d37b46497b6a65f647937f4f89e
parente07de8564c530802b76c9fa0d34b53603fcabf08 (diff)
Remove tests
-rw-r--r--src/main.zig18
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;