1.0 KiB
1.0 KiB
title | id | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
S-Expressions | 59667989bf71cf555dd5d2ff | 5 |
Description
undefined
Instructions
undefined
Tests
tests:
- text: ''
testString: 'assert(typeof parseSexpr === "function", "<code>parseSexpr</code> is a function.");'
- text: ''
testString: 'assert.deepEqual(parseSexpr(simpleSExpr), simpleSolution, "<code>parseSexpr("(data1 data2 data3)")</code> should return ["data1", "data2", "data3"]");'
- text: ''
testString: 'assert.deepEqual(parseSexpr(basicSExpr), basicSolution, "<code>parseSexpr("(data1 data2 data3)")</code> should return an array with 3 elements");'
Challenge Seed
function parseSexpr(str) {
// Good luck!
return true;
}
After Test
console.info('after the test');
Solution
// solution required