* fix: Chinese test suite Add localeTiltes, descriptions, and adjust test text and testStrings to get the automated test suite working. * fix: ran script, updated testStrings and solutions
2.0 KiB
2.0 KiB
id, title, isRequired, challengeType, videoUrl, localeTitle
id | title | isRequired | challengeType | videoUrl | localeTitle |
---|---|---|---|---|---|
ae9defd7acaf69703ab432ea | Smallest Common Multiple | true | 5 | 最小的共同多重 |
Description
Instructions
Tests
tests:
- text: '<code>smallestCommons([1, 5])</code>应返回一个数字。'
testString: assert.deepEqual(typeof smallestCommons([1, 5]), 'number');
- text: '<code>smallestCommons([1, 5])</code>应该返回60。'
testString: assert.deepEqual(smallestCommons([1, 5]), 60);
- text: '<code>smallestCommons([5, 1])</code>应该返回60。'
testString: assert.deepEqual(smallestCommons([5, 1]), 60);
- text: '<code>smallestCommons([2, 10])</code> 2,10 <code>smallestCommons([2, 10])</code>应返回2520。'
testString: assert.deepEqual(smallestCommons([2, 10]), 2520);
- text: '<code>smallestCommons([1, 13])</code> 1,13 <code>smallestCommons([1, 13])</code>应返回360360。'
testString: assert.deepEqual(smallestCommons([1, 13]), 360360);
- text: '<code>smallestCommons([23, 18])</code> 23,18 <code>smallestCommons([23, 18])</code>应返回6056820。'
testString: assert.deepEqual(smallestCommons([23, 18]), 6056820);
Challenge Seed
function smallestCommons(arr) {
return arr;
}
smallestCommons([1,5]);
Solution
// solution required