diff options
Diffstat (limited to 'src/LetterCasing.zig')
| -rw-r--r-- | src/LetterCasing.zig | 9 |
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 | ||
| 206 | fn testAllocator(allocator: Allocator) !void { | ||
| 207 | var prop = try LetterCasing.init(allocator); | ||
| 208 | prop.deinit(allocator); | ||
| 209 | } | ||
| 210 | |||
| 211 | test "Allocation failure" { | ||
| 212 | try testing.checkAllAllocationFailures(testing.allocator, testAllocator, .{}); | ||
| 213 | } | ||
| 214 | |||
| 206 | const std = @import("std"); | 215 | const std = @import("std"); |
| 207 | const builtin = @import("builtin"); | 216 | const builtin = @import("builtin"); |
| 208 | const compress = std.compress; | 217 | const compress = std.compress; |