| Tests that the Diff module correctly diffs things. |
| |
| |
| =: "test th" |
| -: "is" |
| +: "at" |
| =: " sentence" |
| -: "." |
| |
| -: [ |
| "test this sentence." |
| ] |
| +: [ |
| "test that sentence" |
| ] |
| |
| =: [ |
| "a" |
| ] |
| -: [ |
| "b" |
| ] |
| =: [ |
| "c" |
| ] |
| |
| -: [ |
| "a" |
| ] |
| =: [ |
| "b" |
| ] |
| +: [ |
| "a" |
| ] |
| =: [ |
| "c" |
| ] |
| |
| =: [ |
| "a" |
| ] |
| +: [ |
| "b" |
| ] |
| =: [ |
| "c" |
| ] |
| |
| =: [ |
| "for (var i = 0; i < 100; i++) {" |
| ] |
| -: [ |
| " willBeLeftAlone()", |
| " willBeDeleted();" |
| ] |
| +: [ |
| " willBeLeftAlone();" |
| ] |
| =: [ |
| "}" |
| ] |
| +: [ |
| "insertThisLine();" |
| ] |
| =: [ |
| "for (var j = 0; j < 100; j++) {" |
| ] |
| -: [ |
| " console.log('something changed');", |
| " willBeDeletedAgain();" |
| ] |
| +: [ |
| " console.log('changed');" |
| ] |
| =: [ |
| "}" |
| ] |
| |