From 644e21b3efd187ff3e8318f2d579261ab8c3e178 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Thu, 13 Feb 2025 18:40:45 +0100 Subject: fix tests for latest zig --- sqlite.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sqlite.zig b/sqlite.zig index 395d290..ef9f40f 100644 --- a/sqlite.zig +++ b/sqlite.zig @@ -4051,8 +4051,8 @@ test "reuse same field twice in query string" { } test "fuzzing" { - const global = struct { - fn testOne(input: []const u8) anyerror!void { + const Context = struct { + fn testOne(_: @This(), input: []const u8) anyerror!void { var db = try Db.init(.{ .mode = .Memory, .open_flags = .{ @@ -4114,5 +4114,5 @@ test "fuzzing" { } }; - try testing.fuzz(global.testOne, .{}); + try testing.fuzz(Context{}, Context.testOne, .{}); } -- cgit v1.2.3