fix: Add edge case for mixed grouping of characters exercise, where "Frank Roosevelt" returns false (#38097)
This commit is contained in:
		
				
					committed by
					
						
						Parth Parth
					
				
			
			
				
	
			
			
			
						parent
						
							10bd00309a
						
					
				
				
					commit
					1159a8dcaf
				
			@@ -37,6 +37,8 @@ tests:
 | 
				
			|||||||
    testString: myRegex.lastIndex = 0; assert(myRegex.test('Eleanor Roosevelt'));
 | 
					    testString: myRegex.lastIndex = 0; assert(myRegex.test('Eleanor Roosevelt'));
 | 
				
			||||||
  - text: Your regex <code>myRegex</code> should return <code>false</code> for the string <code>Franklin Rosevelt</code>
 | 
					  - text: Your regex <code>myRegex</code> should return <code>false</code> for the string <code>Franklin Rosevelt</code>
 | 
				
			||||||
    testString: myRegex.lastIndex = 0; assert(!myRegex.test('Franklin Rosevelt'));
 | 
					    testString: myRegex.lastIndex = 0; assert(!myRegex.test('Franklin Rosevelt'));
 | 
				
			||||||
 | 
					  - text: Your regex <code>myRegex</code> should return <code>false</code> for the string <code>Frank Roosevelt</code>
 | 
				
			||||||
 | 
					    testString: myRegex.lastIndex = 0; assert(!myRegex.test('Frank Roosevelt'));
 | 
				
			||||||
  - text: You should use <code>.test()</code> to test the regex.
 | 
					  - text: You should use <code>.test()</code> to test the regex.
 | 
				
			||||||
    testString: assert(code.match(/myRegex.test\(\s*myString\s*\)/));
 | 
					    testString: assert(code.match(/myRegex.test\(\s*myString\s*\)/));
 | 
				
			||||||
  - text: Your result should return <code>true</code>.
 | 
					  - text: Your result should return <code>true</code>.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user