comparison tests/test-bdiff.py.out @ 30427:ede7bc45bf0a

tests: make test-bdiff.py easier to maintain Add more stdout logging to help navigate the .out file.
author Mads Kiilerich <madski@unity3d.com>
date Tue, 15 Nov 2016 21:56:49 +0100
parents 9a8363d23419
children 3743e5dbb824
comparison
equal deleted inserted replaced
30426:605e3b126d46 30427:ede7bc45bf0a
1 *** 'a\nc\n\n\n\n' 'a\nb\n\n\n' 1 test 'a\nc\n\n\n\n' 'a\nb\n\n\n'
2 *** 'a\nb\nc\n' 'a\nc\n' 2 test 'a\nb\nc\n' 'a\nc\n'
3 *** '' '' 3 test '' ''
4 *** 'a\nb\nc' 'a\nb\nc' 4 test 'a\nb\nc' 'a\nb\nc'
5 *** 'a\nb\nc\nd\n' 'a\nd\n' 5 test 'a\nb\nc\nd\n' 'a\nd\n'
6 *** 'a\nb\nc\nd\n' 'a\nc\ne\n' 6 test 'a\nb\nc\nd\n' 'a\nc\ne\n'
7 *** 'a\nb\nc\n' 'a\nc\n' 7 test 'a\nb\nc\n' 'a\nc\n'
8 *** 'a\n' 'c\na\nb\n' 8 test 'a\n' 'c\na\nb\n'
9 *** 'a\n' '' 9 test 'a\n' ''
10 *** 'a\n' 'b\nc\n' 10 test 'a\n' 'b\nc\n'
11 *** 'a\n' 'c\na\n' 11 test 'a\n' 'c\na\n'
12 *** '' 'adjfkjdjksdhfksj' 12 test '' 'adjfkjdjksdhfksj'
13 *** '' 'ab' 13 test '' 'ab'
14 *** '' 'abc' 14 test '' 'abc'
15 *** 'a' 'a' 15 test 'a' 'a'
16 *** 'ab' 'ab' 16 test 'ab' 'ab'
17 *** 'abc' 'abc' 17 test 'abc' 'abc'
18 *** 'a\n' 'a\n' 18 test 'a\n' 'a\n'
19 *** 'a\nb' 'a\nb' 19 test 'a\nb' 'a\nb'
20 6 6 'y\n\n' 20 showdiff(
21 6 6 'y\n\n' 21 'x\n\nx\n\nx\n\nx\n\nz\n',
22 9 9 'y\n\n' 22 'x\n\nx\n\ny\n\nx\n\nx\n\nz\n'):
23 0 0 'a\nb\nb\n' 23 'x\n\nx\n\n'
24 12 12 'b\nc\n.\n' 24 6 6 '' -> 'y\n\n'
25 16 18 '' 25 'x\n\nx\n\nz\n'
26 showdiff(
27 'x\n\nx\n\nx\n\nx\n\nz\n',
28 'x\n\nx\n\ny\n\nx\n\ny\n\nx\n\nz\n'):
29 'x\n\nx\n\n'
30 6 6 '' -> 'y\n\n'
31 'x\n\n'
32 9 9 '' -> 'y\n\n'
33 'x\n\nz\n'
34 showdiff(
35 'a\nb\nb\nb\nc\n.\nd\ne\n.\nf\n',
36 'a\nb\nb\na\nb\nb\nb\nc\n.\nb\nc\n.\nd\ne\nf\n'):
37 0 0 '' -> 'a\nb\nb\n'
38 'a\nb\nb\nb\nc\n.\n'
39 12 12 '' -> 'b\nc\n.\n'
40 'd\ne\n'
41 16 18 '.\n' -> ''
42 'f\n'
26 done 43 done
27 done 44 done