Fix #5628 - Update test case to fix logic around return statements

Fixed test case to allow 5 or more 'return' statements
to be used in 'Waypoint: Chaining If Else Statements'
This commit is contained in:
Raja Gopal M
2016-01-01 04:42:07 +05:30
parent 4e57934ed8
commit 63f324c147

View File

@ -2801,7 +2801,7 @@
"tests": [ "tests": [
"assert(code.match(/else/g).length > 3, 'message: You should have at least four <code>else</code> statements');", "assert(code.match(/else/g).length > 3, 'message: You should have at least four <code>else</code> statements');",
"assert(code.match(/if/g).length > 3, 'message: You should have at least four <code>if</code> statements');", "assert(code.match(/if/g).length > 3, 'message: You should have at least four <code>if</code> statements');",
"assert(code.match(/return/g).length === 5, 'message: You should have five <code>return</code> statements');", "assert(code.match(/return/g).length >= 5, 'message: You should have at least five <code>return</code> statements');",
"assert(myTest(0) === \"Tiny\", 'message: <code>myTest(0)</code> should return \"Tiny\"');", "assert(myTest(0) === \"Tiny\", 'message: <code>myTest(0)</code> should return \"Tiny\"');",
"assert(myTest(4) === \"Tiny\", 'message: <code>myTest(4)</code> should return \"Tiny\"');", "assert(myTest(4) === \"Tiny\", 'message: <code>myTest(4)</code> should return \"Tiny\"');",
"assert(myTest(5) === \"Small\", 'message: <code>myTest(5)</code> should return \"Small\"');", "assert(myTest(5) === \"Small\", 'message: <code>myTest(5)</code> should return \"Small\"');",