This commit is contained in:
Michael Q Larson
2015-01-28 21:00:29 -08:00

View File

@ -102,7 +102,7 @@
"Return the provided string with the first letter of each word capitalized.", "Return the provided string with the first letter of each word capitalized.",
"For the purpose of this exercise, you should also capitalize connecting words like 'the' and 'of'." "For the purpose of this exercise, you should also capitalize connecting words like 'the' and 'of'."
], ],
"challengeEntryPoint": "titleCase(\"I'm a little tea pot\")", "challengeEntryPoint": "titleCase(\"I'm a little tea pot\");",
"challengeSeed": "function titleCase(str) {\n return str;\r\n}", "challengeSeed": "function titleCase(str) {\n return str;\r\n}",
"tests": [ "tests": [
"expect(titleCase(\"I'm a little tea pot\")).to.be.a('String');", "expect(titleCase(\"I'm a little tea pot\")).to.be.a('String');",
@ -124,8 +124,8 @@
"challengeSeed": "function largestOfFour(arr) {\n // You can do this!\r\n return arr;\r\n}", "challengeSeed": "function largestOfFour(arr) {\n // You can do this!\r\n return arr;\r\n}",
"tests": [ "tests": [
"expect(largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]])).to.be.a('array');", "expect(largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]])).to.be.a('array');",
"(largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]])).should.equals([5,27,39,1001]);", "(largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]])).should.eql([5,27,39,1001]);",
"assert(largestOfFour([[4, 9, 1, 3], [13, 35, 18, 26], [32, 35, 97, 39], [1000000, 1001, 857, 1]]) === [9,35,97,1000000]);" "assert(largestOfFour([[4, 9, 1, 3], [13, 35, 18, 26], [32, 35, 97, 39], [1000000, 1001, 857, 1]]).should.eql([9,35,97,1000000]));"
] ]
}, },