From 8048ef0c756553dc88192ab13ae658d1ab9a94a2 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sat, 3 Feb 2024 00:29:42 +0100 Subject: Removed useless testing boilerplate --- src/field.zig | 3 --- src/interpreter.zig | 4 ---- src/io.zig | 4 ---- src/main.zig | 3 --- src/pointer.zig | 3 --- src/stack.zig | 4 ---- src/stackStack.zig | 4 ---- 7 files changed, 25 deletions(-) diff --git a/src/field.zig b/src/field.zig index bf170fb..079bb81 100644 --- a/src/field.zig +++ b/src/field.zig @@ -457,9 +457,6 @@ pub const Field = struct { } }; -test "all" { - std.testing.refAllDecls(@This()); -} test "hello" { var hello = std.io.fixedBufferStream("64+\"!dlroW ,olleH\">:#,_@\n"); var f = try Field.init_from_reader(std.testing.allocator, hello.reader()); diff --git a/src/interpreter.zig b/src/interpreter.zig index 37ebba9..5c9f484 100644 --- a/src/interpreter.zig +++ b/src/interpreter.zig @@ -41,7 +41,3 @@ pub const Interpreter = struct { return null; } }; - -test "all" { - std.testing.refAllDecls(@This()); -} diff --git a/src/io.zig b/src/io.zig index 2cc0047..b37d172 100644 --- a/src/io.zig +++ b/src/io.zig @@ -80,7 +80,3 @@ pub fn context(reader: anytype, writer: anytype) Context(@TypeOf(reader), @TypeO .writer = writer, }; } - -test "all" { - std.testing.refAllDecls(@This()); -} diff --git a/src/main.zig b/src/main.zig index 920d306..381a6cb 100644 --- a/src/main.zig +++ b/src/main.zig @@ -25,9 +25,6 @@ pub fn main() anyerror!void { const testTimestamp: i64 = 1660681247; -test "all" { - std.testing.refAllDecls(@This()); -} test "sanity" { var file = try std.fs.cwd().openFile("mycology/sanity.bf", .{}); defer file.close(); diff --git a/src/pointer.zig b/src/pointer.zig index eeb1204..ce170af 100644 --- a/src/pointer.zig +++ b/src/pointer.zig @@ -445,9 +445,6 @@ pub const Pointer = struct { const testTimestamp: i64 = 1660681247; -test "all" { - std.testing.refAllDecls(@This()); -} test "minimal" { var minimal = std.io.fixedBufferStream("@"); var f = try field.Field.init_from_reader(std.testing.allocator, minimal.reader()); diff --git a/src/stack.zig b/src/stack.zig index dd76af1..58c7103 100644 --- a/src/stack.zig +++ b/src/stack.zig @@ -157,7 +157,3 @@ pub const Stack = struct { } } }; - -test "all" { - std.testing.refAllDecls(@This()); -} diff --git a/src/stackStack.zig b/src/stackStack.zig index d846429..79ef7cc 100644 --- a/src/stackStack.zig +++ b/src/stackStack.zig @@ -174,7 +174,3 @@ pub const StackStack = struct { return self.toss; } }; - -test "all" { - std.testing.refAllDecls(@This()); -} -- cgit v1.2.3