# HG changeset patch # User Yuya Nishihara # Date 2016-01-26 14:33:53 # Node ID bc2dd19b95343c65c194b639e2b5fbbe7fd4b6bd # Parent 4301b99126ef2be38718689182d16731d5f91ac3 test-highlight: add normalization rule for Pygments 2.1 It appears that several classes have 'h', '1', '2' suffixes on Pygments 2.1, which is the current version on Debian sid. diff --git a/tests/test-highlight.t b/tests/test-highlight.t --- a/tests/test-highlight.t +++ b/tests/test-highlight.t @@ -12,7 +12,8 @@ $ filterhtml () { > sed -e "s/class=\"k\"/class=\"kn\"/g" \ - > -e "s/class=\"mf\"/class=\"mi\"/g" + > -e "s/class=\"mf\"/class=\"mi\"/g" \ + > -e "s/class=\"\([cs]\)[h12]\"/class=\"\1\"/g" > } create random Python file to exercise Pygments