fix(learn): add test to return early pattern (#38751)
* add: test to return early pattern Currently no test for a = 0 or b = 0. This results in if(a<=0 || b<= 0) also being a valid solution * fix: typo in test text * fix: update return early pattern test Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com> Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
This commit is contained in:
		| @@ -46,7 +46,9 @@ tests: | ||||
|     testString: assert(abTest(2,8) === 18 ); | ||||
|   - text: <code>abTest(3,3)</code> should return <code>12</code> | ||||
|     testString: assert(abTest(3,3) === 12 ); | ||||
|  | ||||
|   - text: <code>abTest(0,0)</code> should return <code>0</code> | ||||
|     testString: assert(abTest(0,0) === 0); | ||||
|      | ||||
| ``` | ||||
|  | ||||
| </section> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user