fix: removed more assert msg arguments (#36439)
This commit is contained in:
committed by
Parth Parth
parent
80365163de
commit
ba6ae7154c
@@ -35,7 +35,7 @@ tests:
|
||||
- text: Your regex should find 12 non-digits in <code>"21 Jump Street"</code>.
|
||||
testString: assert("21 Jump Street".match(noNumRegex).length == 12);
|
||||
- text: 'Your regex should find 17 non-digits in <code>"2001: A Space Odyssey"</code>.'
|
||||
testString: 'assert("2001: A Space Odyssey".match(noNumRegex).length == 17, ''Your regex should find 17 non-digits in <code>"2001: A Space Odyssey"</code>.'');'
|
||||
testString: 'assert("2001: A Space Odyssey".match(noNumRegex).length == 17);'
|
||||
|
||||
```
|
||||
|
||||
|
@@ -35,7 +35,7 @@ tests:
|
||||
- text: Your regex should find 2 digits in <code>"21 Jump Street"</code>.
|
||||
testString: assert("21 Jump Street".match(numRegex).length == 2);
|
||||
- text: 'Your regex should find 4 digits in <code>"2001: A Space Odyssey"</code>.'
|
||||
testString: 'assert("2001: A Space Odyssey".match(numRegex).length == 4, ''Your regex should find 4 digits in <code>"2001: A Space Odyssey"</code>.'');'
|
||||
testString: 'assert("2001: A Space Odyssey".match(numRegex).length == 4);'
|
||||
|
||||
```
|
||||
|
||||
|
@@ -34,7 +34,7 @@ tests:
|
||||
- text: Your regex should find 35 non-spaces in <code>"Men are from Mars and women are from Venus."</code>
|
||||
testString: assert("Men are from Mars and women are from Venus.".match(countNonWhiteSpace).length == 35);
|
||||
- text: 'Your regex should find 23 non-spaces in <code>"Space: the final frontier."</code>'
|
||||
testString: 'assert("Space: the final frontier.".match(countNonWhiteSpace).length == 23, ''Your regex should find 23 non-spaces in <code>"Space: the final frontier."</code>'');'
|
||||
testString: 'assert("Space: the final frontier.".match(countNonWhiteSpace).length == 23);'
|
||||
- text: Your regex should find 21 non-spaces in <code>"MindYourPersonalSpace"</code>
|
||||
testString: assert("MindYourPersonalSpace".match(countNonWhiteSpace).length == 21);
|
||||
|
||||
|
@@ -35,7 +35,7 @@ tests:
|
||||
- text: Your regex should find eight spaces in <code>"Men are from Mars and women are from Venus."</code>
|
||||
testString: assert("Men are from Mars and women are from Venus.".match(countWhiteSpace).length == 8);
|
||||
- text: 'Your regex should find three spaces in <code>"Space: the final frontier."</code>'
|
||||
testString: 'assert("Space: the final frontier.".match(countWhiteSpace).length == 3, ''Your regex should find three spaces in <code>"Space: the final frontier."</code>'');'
|
||||
testString: 'assert("Space: the final frontier.".match(countWhiteSpace).length == 3);'
|
||||
- text: Your regex should find no spaces in <code>"MindYourPersonalSpace"</code>
|
||||
testString: assert("MindYourPersonalSpace".match(countWhiteSpace) == null);
|
||||
|
||||
|
Reference in New Issue
Block a user