This commit is contained in:
webzwo0i 2020-08-04 18:43:01 +02:00
parent 3b3ec6d288
commit dcb061fb1b
7 changed files with 8 additions and 22 deletions

View file

@ -26,8 +26,7 @@ describe("follow",function(){
})
function testCharacterRangeFollow(testId, cs, oldRange, insertionsAfter, correctNewRange) {
var cs = Changeset.checkRep(cs);
cs = Changeset.checkRep(cs);
assertEqualArrays(correctNewRange, Changeset.characterRangeFollow(cs, oldRange[0], oldRange[1], insertionsAfter));
}
@ -121,12 +120,12 @@ function random() {
outTextAssem.append(txt);
appendMultilineOp('+', txt);
} else if (o.skip) {
var txt = textLeft.substring(0, o.skip);
txt = textLeft.substring(0, o.skip);
textLeft = textLeft.substring(o.skip);
outTextAssem.append(txt);
appendMultilineOp('=', txt);
} else if (o.remove) {
var txt = textLeft.substring(0, o.remove);
txt = textLeft.substring(0, o.remove);
textLeft = textLeft.substring(o.remove);
appendMultilineOp('-', txt);
}