@@ -147,7 +147,7 @@ pub fn isWhitespace(c: u8) bool {
147147/// See also: `isWhitespace`
148148pub const whitespace = [_ ]u8 { ' ' , '\t ' , '\n ' , '\r ' , control_code .vt , control_code .ff };
149149
150- test " whitespace" {
150+ test whitespace {
151151 for (whitespace ) | char | try std .testing .expect (isWhitespace (char ));
152152
153153 var i : u8 = 0 ;
@@ -278,7 +278,7 @@ pub fn lowerString(output: []u8, ascii_string: []const u8) []u8 {
278278 return output [0.. ascii_string .len ];
279279}
280280
281- test " lowerString" {
281+ test lowerString {
282282 var buf : [1024 ]u8 = undefined ;
283283 const result = lowerString (& buf , "aBcDeFgHiJkLmNOPqrst0234+💩!" );
284284 try std .testing .expectEqualStrings ("abcdefghijklmnopqrst0234+💩!" , result );
@@ -291,7 +291,7 @@ pub fn allocLowerString(allocator: std.mem.Allocator, ascii_string: []const u8)
291291 return lowerString (result , ascii_string );
292292}
293293
294- test " allocLowerString" {
294+ test allocLowerString {
295295 const result = try allocLowerString (std .testing .allocator , "aBcDeFgHiJkLmNOPqrst0234+💩!" );
296296 defer std .testing .allocator .free (result );
297297 try std .testing .expectEqualStrings ("abcdefghijklmnopqrst0234+💩!" , result );
@@ -307,7 +307,7 @@ pub fn upperString(output: []u8, ascii_string: []const u8) []u8 {
307307 return output [0.. ascii_string .len ];
308308}
309309
310- test " upperString" {
310+ test upperString {
311311 var buf : [1024 ]u8 = undefined ;
312312 const result = upperString (& buf , "aBcDeFgHiJkLmNOPqrst0234+💩!" );
313313 try std .testing .expectEqualStrings ("ABCDEFGHIJKLMNOPQRST0234+💩!" , result );
@@ -320,7 +320,7 @@ pub fn allocUpperString(allocator: std.mem.Allocator, ascii_string: []const u8)
320320 return upperString (result , ascii_string );
321321}
322322
323- test " allocUpperString" {
323+ test allocUpperString {
324324 const result = try allocUpperString (std .testing .allocator , "aBcDeFgHiJkLmNOPqrst0234+💩!" );
325325 defer std .testing .allocator .free (result );
326326 try std .testing .expectEqualStrings ("ABCDEFGHIJKLMNOPQRST0234+💩!" , result );
@@ -335,7 +335,7 @@ pub fn eqlIgnoreCase(a: []const u8, b: []const u8) bool {
335335 return true ;
336336}
337337
338- test " eqlIgnoreCase" {
338+ test eqlIgnoreCase {
339339 try std .testing .expect (eqlIgnoreCase ("HEl💩Lo!" , "hel💩lo!" ));
340340 try std .testing .expect (! eqlIgnoreCase ("hElLo!" , "hello! " ));
341341 try std .testing .expect (! eqlIgnoreCase ("hElLo!" , "helro!" ));
@@ -345,7 +345,7 @@ pub fn startsWithIgnoreCase(haystack: []const u8, needle: []const u8) bool {
345345 return if (needle .len > haystack .len ) false else eqlIgnoreCase (haystack [0.. needle .len ], needle );
346346}
347347
348- test " startsWithIgnoreCase" {
348+ test startsWithIgnoreCase {
349349 try std .testing .expect (startsWithIgnoreCase ("boB" , "Bo" ));
350350 try std .testing .expect (! startsWithIgnoreCase ("Needle in hAyStAcK" , "haystack" ));
351351}
@@ -354,7 +354,7 @@ pub fn endsWithIgnoreCase(haystack: []const u8, needle: []const u8) bool {
354354 return if (needle .len > haystack .len ) false else eqlIgnoreCase (haystack [haystack .len - needle .len .. ], needle );
355355}
356356
357- test " endsWithIgnoreCase" {
357+ test endsWithIgnoreCase {
358358 try std .testing .expect (endsWithIgnoreCase ("Needle in HaYsTaCk" , "haystack" ));
359359 try std .testing .expect (! endsWithIgnoreCase ("BoB" , "Bo" ));
360360}
@@ -409,7 +409,7 @@ fn boyerMooreHorspoolPreprocessIgnoreCase(pattern: []const u8, table: *[256]usiz
409409 }
410410}
411411
412- test " indexOfIgnoreCase" {
412+ test indexOfIgnoreCase {
413413 try std .testing .expect (indexOfIgnoreCase ("one Two Three Four" , "foUr" ).? == 14 );
414414 try std .testing .expect (indexOfIgnoreCase ("one two three FouR" , "gOur" ) == null );
415415 try std .testing .expect (indexOfIgnoreCase ("foO" , "Foo" ).? == 0 );
0 commit comments