You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: TestFoundation/TestNSRegularExpression.swift
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -239,13 +239,13 @@ class TestNSRegularExpression : XCTestCase {
239
239
complexRegularExpressionTest("\\b(th[a-z]+) \\1\\b",[],"This this is the the way.",[],NSMakeRange(0,25),1,NSMakeRange(13,7),NSMakeRange(13,3),NSMakeRange(13,3));
240
240
complexRegularExpressionTest("\\b(th[a-z]+) \\1\\b",.CaseInsensitive,"This this is the the way.",[],NSMakeRange(0,25),2,NSMakeRange(0,9),NSMakeRange(0,4),NSMakeRange(0,4));
241
241
242
-
//complexRegularExpressionTest("\\b(th[a-z]+) \\1\\b", [], "This this is the theway.", [], NSMakeRange(0, 24), 0, NSMakeRange(NSNotFound, 0), NSMakeRange(NSNotFound, 0), NSMakeRange(NSNotFound, 0));
242
+
complexRegularExpressionTest("\\b(th[a-z]+) \\1\\b",[],"This this is the theway.",[],NSMakeRange(0,24),0,NSMakeRange(NSNotFound,0),NSMakeRange(NSNotFound,0),NSMakeRange(NSNotFound,0));
243
243
complexRegularExpressionTest("\\b(th[a-z]+) \\1\\b",[],"This this is the theway.",[],NSMakeRange(0,20),1,NSMakeRange(13,7),NSMakeRange(13,3),NSMakeRange(13,3));
244
-
//complexRegularExpressionTest("\\b(th[a-z]+) \\1\\b", [], "This this is the theway.", .WithTransparentBounds, NSMakeRange(0, 20), 0, NSMakeRange(NSNotFound, 0), NSMakeRange(NSNotFound, 0), NSMakeRange(NSNotFound, 0));
244
+
complexRegularExpressionTest("\\b(th[a-z]+) \\1\\b",[],"This this is the theway.",.WithTransparentBounds,NSMakeRange(0,20),0,NSMakeRange(NSNotFound,0),NSMakeRange(NSNotFound,0),NSMakeRange(NSNotFound,0));
245
245
complexRegularExpressionTest("\\b(th[a-z]+) \\1\\b",.CaseInsensitive,"xThis this is the theway.",[],NSMakeRange(0,25),0,NSMakeRange(NSNotFound,0),NSMakeRange(NSNotFound,0),NSMakeRange(NSNotFound,0));
246
-
//complexRegularExpressionTest("\\b(th[a-z]+) \\1\\b", [], "xThis this is the theway.", [], NSMakeRange(1, 20), 1, NSMakeRange(14, 7), NSMakeRange(14, 3), NSMakeRange(14, 3));
246
+
complexRegularExpressionTest("\\b(th[a-z]+) \\1\\b",[],"xThis this is the theway.",[],NSMakeRange(1,20),1,NSMakeRange(14,7),NSMakeRange(14,3),NSMakeRange(14,3));
247
247
complexRegularExpressionTest("\\b(th[a-z]+) \\1\\b",.CaseInsensitive,"xThis this is the theway.",[],NSMakeRange(1,20),2,NSMakeRange(1,9),NSMakeRange(1,4),NSMakeRange(1,4));
248
-
//complexRegularExpressionTest("\\b(th[a-z]+) \\1\\b", .CaseInsensitive, "xThis this is the theway.", .WithTransparentBounds, NSMakeRange(1, 20), 0, NSMakeRange(NSNotFound, 0), NSMakeRange(NSNotFound, 0), NSMakeRange(NSNotFound, 0));
248
+
complexRegularExpressionTest("\\b(th[a-z]+) \\1\\b",.CaseInsensitive,"xThis this is the theway.",.WithTransparentBounds,NSMakeRange(1,20),0,NSMakeRange(NSNotFound,0),NSMakeRange(NSNotFound,0),NSMakeRange(NSNotFound,0));
249
249
250
250
complexRegularExpressionTest(NSRegularExpression.escapedPatternForString("\\b(th[a-z]+) \\1\\b"),[],"This this is the the way.",[],NSMakeRange(0,25),0,NSMakeRange(NSNotFound,0),NSMakeRange(NSNotFound,0),NSMakeRange(NSNotFound,0));
@@ -273,8 +273,8 @@ class TestNSRegularExpression : XCTestCase {
273
273
complexRegularExpressionTest("\\b(th[a-z]+).\n#the first expression repeats\n\\1\\b",.AllowCommentsAndWhitespace,"This this is the the way.",[],NSMakeRange(0,25),1,NSMakeRange(13,7),NSMakeRange(13,3),NSMakeRange(13,3));
0 commit comments