summaryrefslogtreecommitdiffstats
path: root/hugolib/shortcode_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-10-15 15:29:17 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-10-15 15:29:17 +0200
commit2e0e77bed1b3c220f3e131bdd942609c7deabcf6 (patch)
tree365c1e33e7d5f8ab7d6dd4ae037752b4ba6b1620 /hugolib/shortcode_test.go
parent10a773cde7a7d5860512917ae2aa14b683318000 (diff)
Make the pygments shortcode test matching less specific
So it does not fail on "other" pygments versions.
Diffstat (limited to 'hugolib/shortcode_test.go')
-rw-r--r--hugolib/shortcode_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go
index 040dacd36..2ac525101 100644
--- a/hugolib/shortcode_test.go
+++ b/hugolib/shortcode_test.go
@@ -519,7 +519,7 @@ e`,
// #2223 pygments
{"sect/doc6.md", "\n```bash\nb: {{< b >}} c: {{% c %}}\n```\n",
filepath.FromSlash("sect/doc6/index.html"),
- "<div class=\"highlight\"><pre><code class=\"language-bash\" data-lang=\"bash\"><span></span>b: b c: c\n</code></pre></div>\n"},
+ "b: b c: c\n</code></pre></div>\n"},
// #2249
{"sect/doc7.ad", `_Shortcodes:_ *b: {{< b >}} c: {{% c %}}*`,
filepath.FromSlash("sect/doc7/index.html"),
@@ -612,7 +612,7 @@ tags:
content := helpers.ReaderToString(file)
- if content != test.expected {
+ if !strings.Contains(content, test.expected) {
t.Fatalf("%s content expected:\n%q\ngot:\n%q", test.outFile, test.expected, content)
}
}