From afc5a50c0990179f9a4e4654fbc7c7384706d7a1 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sun, 10 Mar 2024 13:02:36 -0700 Subject: [PATCH] testing: fix runtime parameters Signed-off-by: Stephen Gutekanst --- src/testing.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/testing.zig b/src/testing.zig index 0eae35de..75a8c8bd 100644 --- a/src/testing.zig +++ b/src/testing.zig @@ -91,7 +91,7 @@ fn ExpectVecMat(comptime T: type) type { fn ExpectComptime(comptime T: type) type { return struct { expected: T, - pub fn eql(comptime e: *const @This(), comptime actual: T) !void { + pub fn eql(e: *const @This(), actual: T) !void { try testing.expectEqual(e.expected, actual); } }; @@ -101,11 +101,11 @@ fn ExpectBytes(comptime T: type) type { return struct { expected: T, - pub fn eql(comptime e: *const @This(), comptime actual: T) !void { + pub fn eql(e: *const @This(), actual: T) !void { try testing.expectEqualStrings(e.expected, actual); } - pub fn eqlBinary(comptime e: *const @This(), comptime actual: T) !void { + pub fn eqlBinary(e: *const @This(), actual: T) !void { try testing.expectEqual(e.expected, actual); } };