Revert "51c14d994756e60333b0b60eccb7255cf0c86461 changed the return value of"

This reverts commit 66582b19e7.
pull/2518/head
webzwo0i 2015-02-16 06:22:49 +01:00
parent 83e1bf0dc4
commit 59328aa33a
1 changed files with 5 additions and 5 deletions

View File

@ -149,7 +149,7 @@ function runTests() {
var correctText = correct.join('');
//print(literal(cs));
var outText = Changeset.applyToText(cs, inText)[0];
var outText = Changeset.applyToText(cs, inText);
assertEqualStrings(correctText, outText);
}
@ -585,9 +585,9 @@ function runTests() {
var change123a = Changeset.checkRep(Changeset.compose(change1, change23, p));
assertEqualStrings(change123, change123a);
assertEqualStrings(text2, Changeset.applyToText(change12, startText)[0]);
assertEqualStrings(text3, Changeset.applyToText(change23, text1)[0]);
assertEqualStrings(text3, Changeset.applyToText(change123, startText)[0]);
assertEqualStrings(text2, Changeset.applyToText(change12, startText));
assertEqualStrings(text3, Changeset.applyToText(change23, text1));
assertEqualStrings(text3, Changeset.applyToText(change123, startText));
}
for (var i = 0; i < 30; i++) testCompose(i);
@ -699,7 +699,7 @@ function runTests() {
print("> testMakeSplice");
var t = "a\nb\nc\n";
var t2 = Changeset.applyToText(Changeset.makeSplice(t, 5, 0, "def"), t)[0];
var t2 = Changeset.applyToText(Changeset.makeSplice(t, 5, 0, "def"), t);
assertEqualStrings("a\nb\ncdef\n", t2);
})();