Fix test solution tail comment collision

This commit is contained in:
SaintPeter
2015-12-29 10:23:57 -08:00
parent 1ee349447b
commit e01e28aec3

View File

@ -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);