test-highlight: add normalization rule for Pygments 2.1
authorYuya Nishihara <yuya@tcha.org>
Tue, 26 Jan 2016 23:33:53 +0900
changeset 27997 bc2dd19b9534
parent 27996 4301b99126ef
child 27998 84513a4fcc3a
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.
tests/test-highlight.t
--- a/tests/test-highlight.t	Tue Jan 26 23:27:12 2016 +0900
+++ b/tests/test-highlight.t	Tue Jan 26 23:33:53 2016 +0900
@@ -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