Fix test solution tail comment collision
This commit is contained in:
@ -85,7 +85,7 @@ function createTest({
|
|||||||
return Observable.just(t)
|
return Observable.just(t)
|
||||||
.map(fillAssert)
|
.map(fillAssert)
|
||||||
/* eslint-disable no-unused-vars */
|
/* eslint-disable no-unused-vars */
|
||||||
// assert is used within the eval
|
// assert and code used within the eval
|
||||||
.doOnNext(assert => {
|
.doOnNext(assert => {
|
||||||
solutions.forEach(solution => {
|
solutions.forEach(solution => {
|
||||||
tests.forEach(test => {
|
tests.forEach(test => {
|
||||||
@ -94,7 +94,11 @@ function createTest({
|
|||||||
/* eslint-enable no-unused-vars */
|
/* eslint-enable no-unused-vars */
|
||||||
try {
|
try {
|
||||||
(() => {
|
(() => {
|
||||||
return eval(head + solution + tail + ';;' + test);
|
return eval(
|
||||||
|
head + '\n;;' +
|
||||||
|
solution + '\n;;' +
|
||||||
|
tail + '\n;;' +
|
||||||
|
test);
|
||||||
})();
|
})();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
t.fail(e);
|
t.fail(e);
|
||||||
|
Reference in New Issue
Block a user