Merge pull request #8857 from pranayberry/fix/remainder-challenge
Updated test case for the remainder challengepull/8860/head
commit
0e10970198
|
@ -643,7 +643,7 @@
|
||||||
],
|
],
|
||||||
"tests": [
|
"tests": [
|
||||||
"assert(remainder === 2, 'message: The value of <code>remainder</code> should be <code>2</code>');",
|
"assert(remainder === 2, 'message: The value of <code>remainder</code> should be <code>2</code>');",
|
||||||
"assert(/\\d+\\s*%\\s*\\d+/.test(code), 'message: You should use the <code>%</code> operator');"
|
"assert(/var\\s*?remainder\\s*?=\\s*?.*%.*;/.test(code), 'message: You should use the <code>%</code> operator');"
|
||||||
],
|
],
|
||||||
"type": "waypoint",
|
"type": "waypoint",
|
||||||
"challengeType": 1,
|
"challengeType": 1,
|
||||||
|
|
Loading…
Reference in New Issue