fix: changed tests to allow other valid solutions (#36210)
This commit is contained in:
		
				
					committed by
					
						 Manish Giri
						Manish Giri
					
				
			
			
				
	
			
			
			
						parent
						
							ed4bbfdbcd
						
					
				
				
					commit
					f53ca79890
				
			| @@ -35,9 +35,9 @@ tests: | |||||||
|   - text: <code>mixedNumbers(["IV", 5, "six"])</code> should now return <code>["I", 2, "three", "IV", 5, "six", 7, "VIII", 9]</code> |   - text: <code>mixedNumbers(["IV", 5, "six"])</code> should now return <code>["I", 2, "three", "IV", 5, "six", 7, "VIII", 9]</code> | ||||||
|     testString: assert.deepEqual(mixedNumbers(['IV', 5, 'six']), ['I', 2, 'three', 'IV', 5, 'six', 7, 'VIII', 9], '<code>mixedNumbers(["IV", 5, "six"])</code> should now return <code>["I", 2, "three", "IV", 5, "six", 7, "VIII", 9]</code>'); |     testString: assert.deepEqual(mixedNumbers(['IV', 5, 'six']), ['I', 2, 'three', 'IV', 5, 'six', 7, 'VIII', 9], '<code>mixedNumbers(["IV", 5, "six"])</code> should now return <code>["I", 2, "three", "IV", 5, "six", 7, "VIII", 9]</code>'); | ||||||
|   - text: The <code>mixedNumbers</code> function should utilize the <code>push()</code> method |   - text: The <code>mixedNumbers</code> function should utilize the <code>push()</code> method | ||||||
|     testString: assert.notStrictEqual(mixedNumbers.toString().search(/\.push\(/), -1, 'The <code>mixedNumbers</code> function should utilize the <code>push()</code> method'); |     testString: assert(mixedNumbers.toString().match(/\.push/)); | ||||||
|   - text: The <code>mixedNumbers</code> function should utilize the <code>unshift()</code> method |   - text: The <code>mixedNumbers</code> function should utilize the <code>unshift()</code> method | ||||||
|     testString: assert.notStrictEqual(mixedNumbers.toString().search(/\.unshift\(/), -1, 'The <code>mixedNumbers</code> function should utilize the <code>unshift()</code> method'); |     testString: assert(mixedNumbers.toString().match(/\.unshift/)); | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user