Skip to content

Commit 1354f6c

Browse files
webzwo0irhansen
authored andcommitted
Add another regression test that deletes all lines and inserts two
strings where the first ends in a newline.
1 parent 3eea5f3 commit 1354f6c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/node/easysync_tests.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,11 @@ const runTests = () => {
227227
['insert', 'a'],
228228
['insert', 'c\n', 1],
229229
], ['ac\n']);
230+
runMutationTest(10, ['\n'], [
231+
['remove', 1, 1, '\n'],
232+
['insert', 'a\n', 1],
233+
['insert', 'c'],
234+
], ['a\n', 'c']); // TODO find out if c must have a newline because of unknown constraints
230235

231236
const poolOrArray = (attribs) => {
232237
if (attribs.getAttrib) {

0 commit comments

Comments
 (0)