* 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.2 KiB
2.2 KiB
id, title, isRequired, challengeType, videoUrl, localeTitle
id | title | isRequired | challengeType | videoUrl | localeTitle |
---|---|---|---|---|---|
afd15382cdfb22c9efe8b7de | DNA Pairing | true | 5 | DNA配对 |
Description
Instructions
Tests
tests:
- text: '<code>pairElement("ATCGA")</code>应返回<code>[["A","T"],["T","A"],["C","G"],["G","C"],["A","T"]]</code> 。'
testString: assert.deepEqual(pairElement("ATCGA"),[["A","T"],["T","A"],["C","G"],["G","C"],["A","T"]]);
- text: '<code>pairElement("TTGAG")</code>应返回<code>[["T","A"],["T","A"],["G","C"],["A","T"],["G","C"]]</code> 。'
testString: assert.deepEqual(pairElement("TTGAG"),[["T","A"],["T","A"],["G","C"],["A","T"],["G","C"]]);
- text: '<code>pairElement("CTCTA")</code>应返回<code>[["C","G"],["T","A"],["C","G"],["T","A"],["A","T"]]</code> 。'
testString: assert.deepEqual(pairElement("CTCTA"),[["C","G"],["T","A"],["C","G"],["T","A"],["A","T"]]);
Challenge Seed
function pairElement(str) {
return str;
}
pairElement("GCG");
Solution
// solution required