summaryrefslogtreecommitdiff
path: root/src/CaseData.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/CaseData.zig')
-rw-r--r--src/CaseData.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/CaseData.zig b/src/CaseData.zig
index f05ac26..0a0acb1 100644
--- a/src/CaseData.zig
+++ b/src/CaseData.zig
@@ -99,7 +99,7 @@ pub fn isUpperStr(self: Self, str: []const u8) bool {
99 99
100test "isUpperStr" { 100test "isUpperStr" {
101 const cd = try init(testing.allocator); 101 const cd = try init(testing.allocator);
102 defer cd.deinit(); 102 defer cd.deinit(testing.allocator);
103 103
104 try testing.expect(cd.isUpperStr("HELLO, WORLD 2112!")); 104 try testing.expect(cd.isUpperStr("HELLO, WORLD 2112!"));
105 try testing.expect(!cd.isUpperStr("hello, world 2112!")); 105 try testing.expect(!cd.isUpperStr("hello, world 2112!"));
@@ -134,7 +134,7 @@ pub fn toUpperStr(
134 134
135test "toUpperStr" { 135test "toUpperStr" {
136 const cd = try init(testing.allocator); 136 const cd = try init(testing.allocator);
137 defer cd.deinit(); 137 defer cd.deinit(testing.allocator);
138 138
139 const uppered = try cd.toUpperStr(testing.allocator, "Hello, World 2112!"); 139 const uppered = try cd.toUpperStr(testing.allocator, "Hello, World 2112!");
140 defer testing.allocator.free(uppered); 140 defer testing.allocator.free(uppered);
@@ -157,7 +157,7 @@ pub fn isLowerStr(self: Self, str: []const u8) bool {
157 157
158test "isLowerStr" { 158test "isLowerStr" {
159 const cd = try init(testing.allocator); 159 const cd = try init(testing.allocator);
160 defer cd.deinit(); 160 defer cd.deinit(testing.allocator);
161 161
162 try testing.expect(cd.isLowerStr("hello, world 2112!")); 162 try testing.expect(cd.isLowerStr("hello, world 2112!"));
163 try testing.expect(!cd.isLowerStr("HELLO, WORLD 2112!")); 163 try testing.expect(!cd.isLowerStr("HELLO, WORLD 2112!"));
@@ -192,7 +192,7 @@ pub fn toLowerStr(
192 192
193test "toLowerStr" { 193test "toLowerStr" {
194 const cd = try init(testing.allocator); 194 const cd = try init(testing.allocator);
195 defer cd.deinit(); 195 defer cd.deinit(testing.allocator);
196 196
197 const lowered = try cd.toLowerStr(testing.allocator, "Hello, World 2112!"); 197 const lowered = try cd.toLowerStr(testing.allocator, "Hello, World 2112!");
198 defer testing.allocator.free(lowered); 198 defer testing.allocator.free(lowered);