Fix/ExtraTestCaseForSwitchChallenge

Added extra test case
This commit is contained in:
Ricardo Alejandre
2016-10-14 14:27:49 -07:00
committed by Stuart Taylor
parent 9d0b016313
commit 2c683c14b4

View File

@ -3847,6 +3847,7 @@
"assert(switchOfStuff(\"d\") === \"stuff\", 'message: <code>switchOfStuff(\"d\")</code> should have a value of \"stuff\"');",
"assert(switchOfStuff(4) === \"stuff\", 'message: <code>switchOfStuff(4)</code> should have a value of \"stuff\"');",
"assert(!/else/g.test(code) || !/if/g.test(code), 'message: You should not use any <code>if</code> or <code>else</code> statements');",
"assert(switchOfStuff(\"string-to-trigger-default-case\") === \"stuff\", 'message: You should use a <code>default</code> statement');",
"assert(code.match(/break/g).length > 2, 'message: You should have at least 3 <code>break</code> statements');"
],
"type": "waypoint",