comparison tests/test-encoding-align.t @ 12941:b911cb80c671 stable

tests: use (esc) markup for string-escape This makes test output less ambiguous. Failing test output will be escaped and marked up if necessary. A Python string-escape compatible encoding is used, but not everything is encoded - especially not \n and \t and '.
author Mads Kiilerich <mads@kiilerich.com>
date Mon, 08 Nov 2010 01:35:41 +0100
parents 22f45e53bb21
children 0cb27eda3a1e
comparison
equal deleted inserted replaced
12940:518dd70d1a6e 12941:b911cb80c671
50 50
51 dummy command to show option descriptions 51 dummy command to show option descriptions
52 52
53 options: 53 options:
54 54
55 -s --opt1 \xe7\x9f\xad\xe5\x90\x8d short width 55 -s --opt1 \xe7\x9f\xad\xe5\x90\x8d short width (esc)
56 -m --opt2 MIDDLE_ middle width 56 -m --opt2 MIDDLE_ middle width
57 -l --opt3 \xe9\x95\xb7\xe3\x81\x84\xe9\x95\xb7\xe3\x81\x84\xe5\x90\x8d\xe5\x89\x8d long width 57 -l --opt3 \xe9\x95\xb7\xe3\x81\x84\xe9\x95\xb7\xe3\x81\x84\xe5\x90\x8d\xe5\x89\x8d long width (esc)
58 58
59 use "hg -v help showoptlist" to show global options 59 use "hg -v help showoptlist" to show global options
60 60
61 61
62 $ rm -f s; touch s 62 $ rm -f s; touch s
94 $ hg commit -m 'third commit' -u $L 94 $ hg commit -m 'third commit' -u $L
95 95
96 check alignment of user names in annotate 96 check alignment of user names in annotate
97 97
98 $ hg annotate -u $M 98 $ hg annotate -u $M
99 \xe7\x9f\xad\xe5\x90\x8d: first line(2) 99 \xe7\x9f\xad\xe5\x90\x8d: first line(2) (esc)
100 MIDDLE_: second line(2) 100 MIDDLE_: second line(2)
101 \xe9\x95\xb7\xe3\x81\x84\xe9\x95\xb7\xe3\x81\x84\xe5\x90\x8d\xe5\x89\x8d: third line(2) 101 \xe9\x95\xb7\xe3\x81\x84\xe9\x95\xb7\xe3\x81\x84\xe5\x90\x8d\xe5\x89\x8d: third line(2) (esc)
102 102
103 check alignment of filenames in diffstat 103 check alignment of filenames in diffstat
104 104
105 $ hg diff -c tip --stat 105 $ hg diff -c tip --stat
106 MIDDLE_ | 1 + 106 MIDDLE_ | 1 +
107 \xe7\x9f\xad\xe5\x90\x8d | 1 + 107 \xe7\x9f\xad\xe5\x90\x8d | 1 + (esc)
108 \xe9\x95\xb7\xe3\x81\x84\xe9\x95\xb7\xe3\x81\x84\xe5\x90\x8d\xe5\x89\x8d | 1 + 108 \xe9\x95\xb7\xe3\x81\x84\xe9\x95\xb7\xe3\x81\x84\xe5\x90\x8d\xe5\x89\x8d | 1 + (esc)
109 3 files changed, 3 insertions(+), 0 deletions(-) 109 3 files changed, 3 insertions(+), 0 deletions(-)
110 110
111 add branches/tags 111 add branches/tags
112 112
113 $ hg branch $S 113 $ hg branch $S
114 marked working directory as branch \xe7\x9f\xad\xe5\x90\x8d 114 marked working directory as branch \xe7\x9f\xad\xe5\x90\x8d (esc)
115 $ hg tag $S 115 $ hg tag $S
116 $ hg branch $M 116 $ hg branch $M
117 marked working directory as branch MIDDLE_ 117 marked working directory as branch MIDDLE_
118 $ hg tag $M 118 $ hg tag $M
119 $ hg branch $L 119 $ hg branch $L
120 marked working directory as branch \xe9\x95\xb7\xe3\x81\x84\xe9\x95\xb7\xe3\x81\x84\xe5\x90\x8d\xe5\x89\x8d 120 marked working directory as branch \xe9\x95\xb7\xe3\x81\x84\xe9\x95\xb7\xe3\x81\x84\xe5\x90\x8d\xe5\x89\x8d (esc)
121 $ hg tag $L 121 $ hg tag $L
122 122
123 check alignment of branches 123 check alignment of branches
124 124
125 $ hg tags 125 $ hg tags
126 tip 5:d745ff46155b 126 tip 5:d745ff46155b
127 \xe9\x95\xb7\xe3\x81\x84\xe9\x95\xb7\xe3\x81\x84\xe5\x90\x8d\xe5\x89\x8d 4:9259be597f19 127 \xe9\x95\xb7\xe3\x81\x84\xe9\x95\xb7\xe3\x81\x84\xe5\x90\x8d\xe5\x89\x8d 4:9259be597f19 (esc)
128 MIDDLE_ 3:b06c5b6def9e 128 MIDDLE_ 3:b06c5b6def9e
129 \xe7\x9f\xad\xe5\x90\x8d 2:64a70663cee8 129 \xe7\x9f\xad\xe5\x90\x8d 2:64a70663cee8 (esc)
130 130
131 check alignment of tags 131 check alignment of tags
132 132
133 $ hg tags 133 $ hg tags
134 tip 5:d745ff46155b 134 tip 5:d745ff46155b
135 \xe9\x95\xb7\xe3\x81\x84\xe9\x95\xb7\xe3\x81\x84\xe5\x90\x8d\xe5\x89\x8d 4:9259be597f19 135 \xe9\x95\xb7\xe3\x81\x84\xe9\x95\xb7\xe3\x81\x84\xe5\x90\x8d\xe5\x89\x8d 4:9259be597f19 (esc)
136 MIDDLE_ 3:b06c5b6def9e 136 MIDDLE_ 3:b06c5b6def9e
137 \xe7\x9f\xad\xe5\x90\x8d 2:64a70663cee8 137 \xe7\x9f\xad\xe5\x90\x8d 2:64a70663cee8 (esc)