Skip to content

Commit

Permalink
Merge pull request freeCodeCamp#4222 from faizaanceg/staging
Browse files Browse the repository at this point in the history
Adding tests to Bonfire: Repeat a string repeat a string
  • Loading branch information
ltegman committed Nov 9, 2015
2 parents 1389795 + 26e37cd commit 390caf4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions seed/challenges/basic-bonfires.json
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,9 @@
"tests": [
"assert(repeat(\"*\", 3) === \"***\", 'message: <code>repeat(\"*\", 3)</code> should return <code>\"***\"</code>.');",
"assert(repeat(\"abc\", 3) === \"abcabcabc\", 'message: <code>repeat(\"abc\", 3)</code> should return <code>\"abcabcabc\"</code>.');",
"assert(repeat(\"abc\", 4) === \"abcabcabcabc\", 'message: <code>repeat(\"abc\", 4)</code> should return <code>\"abcabcabcabc\"</code>.');",
"assert(repeat(\"abc\", 1) === \"abc\", 'message: <code>repeat(\"abc\", 1)</code> should return <code>\"abc\"</code>.');",
"assert(repeat(\"*\", 8) === \"********\", 'message: <code>repeat(\"*\", 8)</code> should return <code>\"********\"</code>.');",
"assert(repeat(\"abc\", -2) === \"\", 'message: <code>repeat(\"abc\", -2)</code> should return <code>\"\"</code>.');"
],
"MDNlinks": [
Expand Down

0 comments on commit 390caf4

Please sign in to comment.