summaryrefslogtreecommitdiff
path: root/src/LetterCasing.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/LetterCasing.zig')
-rw-r--r--src/LetterCasing.zig9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/LetterCasing.zig b/src/LetterCasing.zig
index a7260b8..11a3e96 100644
--- a/src/LetterCasing.zig
+++ b/src/LetterCasing.zig
@@ -203,6 +203,15 @@ test "toLowerStr" {
203 try testing.expectEqualStrings("hello, world 2112!", lowered); 203 try testing.expectEqualStrings("hello, world 2112!", lowered);
204} 204}
205 205
206fn testAllocator(allocator: Allocator) !void {
207 var prop = try LetterCasing.init(allocator);
208 prop.deinit(allocator);
209}
210
211test "Allocation failure" {
212 try testing.checkAllAllocationFailures(testing.allocator, testAllocator, .{});
213}
214
206const std = @import("std"); 215const std = @import("std");
207const builtin = @import("builtin"); 216const builtin = @import("builtin");
208const compress = std.compress; 217const compress = std.compress;