# HG changeset patch # User Yuya Nishihara # Date 2016-01-26 14:26:05 # Node ID 834d27c4655d183a736e6b522476765ecfc806ea # Parent 90cff855ae1ce426ba70251fb752ac06f3638dec test-highlight: unify normalization rule of pygments output We had two variants for unknown reason, s/mf/mi/g and s/mi/mf/g. This patch unifies them to s/mf/mi/g so that we can introduce a utility function. diff --git a/tests/test-highlight.t b/tests/test-highlight.t --- a/tests/test-highlight.t +++ b/tests/test-highlight.t @@ -191,7 +191,7 @@ hgweb filerevision, html hgweb fileannotate, html $ (get-with-headers.py localhost:$HGPORT 'annotate/tip/primes.py') \ - > | sed "s/class=\"k\"/class=\"kn\"/g" | sed "s/class=\"mi\"/class=\"mf\"/g" + > | sed "s/class=\"k\"/class=\"kn\"/g" | sed "s/class=\"mf\"/class=\"mi\"/g" 200 Script output follows @@ -408,7 +408,7 @@ hgweb fileannotate, html test@0 - 18 ns = ifilter(lambda n: n % p != 0, ns) + 18 ns = ifilter(lambda n: n % p != 0, ns) @@ -436,14 +436,14 @@ hgweb fileannotate, html test@0 - 22 odds = ifilter(lambda i: i % 2 == 1, count()) + 22 odds = ifilter(lambda i: i % 2 == 1, count()) test@0 - 23 return chain([2], sieve(dropwhile(lambda n: n < 3, odds))) + 23 return chain([2], sieve(dropwhile(lambda n: n < 3, odds))) @@ -478,7 +478,7 @@ hgweb fileannotate, html test@0 - 28 n = int(sys.argv[1]) + 28 n = int(sys.argv[1]) @@ -492,7 +492,7 @@ hgweb fileannotate, html test@0 - 30 n = 10 + 30 n = 10