From aeb0cf211d06c09133000128b2bf53b3460e2f71 Mon Sep 17 00:00:00 2001 From: Madeorsk Date: Wed, 8 Jan 2025 23:33:30 +0100 Subject: [PATCH] Do not publish test functions. --- src/lib.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.zig b/src/lib.zig index c9159a1..2a524d1 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -66,7 +66,7 @@ test slugify { try testSlugify("toi-yeu-nhung-chu-ky-lan", "tôi yêu những chú kỳ lân"); } /// Test slugify function. -pub fn testSlugify(expected: []const u8, toSlugify: []const u8) !void { +fn testSlugify(expected: []const u8, toSlugify: []const u8) !void { const slug = try slugify(std.testing.allocator, toSlugify); defer std.testing.allocator.free(slug); @@ -77,7 +77,7 @@ test slugifySeparator { try testSlugifySeparator("something_else", "SôMÈThing \t ÉLSÈ", '_'); } /// Test slugifySeparator function. -pub fn testSlugifySeparator(expected: []const u8, toSlugify: []const u8, separator: u8) !void { +fn testSlugifySeparator(expected: []const u8, toSlugify: []const u8, separator: u8) !void { const slug = try slugifySeparator(std.testing.allocator, toSlugify, separator); defer std.testing.allocator.free(slug);