summaryrefslogtreecommitdiffstats
path: root/hugolib/page_test.go
diff options
context:
space:
mode:
authorAnthony Fok <foka@debian.org>2019-01-29 13:03:42 -0700
committerAnthony Fok <foka@debian.org>2019-01-29 13:03:42 -0700
commit2a9060a85ce430b28f5ec47e1438c6ef1b8e13fa (patch)
treeb609701340f2ccc35d8370e15cf374386fb1316f /hugolib/page_test.go
parent3038464ea6f931c8a08ee49d47f1eaec99ba4817 (diff)
hugolib: Expand TestPageWithEmoji to cover '+', '-' and '_' too
See #5635 and commit 3038464e
Diffstat (limited to 'hugolib/page_test.go')
-rw-r--r--hugolib/page_test.go24
1 files changed, 21 insertions, 3 deletions
diff --git a/hugolib/page_test.go b/hugolib/page_test.go
index 9723b1426..1db1d3522 100644
--- a/hugolib/page_test.go
+++ b/hugolib/page_test.go
@@ -1512,8 +1512,16 @@ title: "Hugo Smile"
This is a :smile:.
<!--more-->
-Another :smile: This is :not: an emoji.
+Another :smile: This is :not: :an: :emoji:.
+O :christmas_tree:
+
+Write me an :e-mail: or :email:?
+
+Too many colons: :: ::: :::: :?: :!: :.:
+
+If you dislike this video, you can hit that :-1: button :stuck_out_tongue_winking_eye:,
+but if you like it, hit :+1: and get subscribed!
`)
b.CreateSites().Build(BuildCfg{})
@@ -1522,13 +1530,23 @@ Another :smile: This is :not: an emoji.
b.AssertFileContent("public/page-emoji/index.html",
"This is a 😄",
"Another 😄",
- "This is :not: an emoji",
+ "This is :not: :an: :emoji:.",
+ "O 🎄",
+ "Write me an 📧 or ✉️?",
+ "Too many colons: :: ::: :::: :?: :!: :.:",
+ "you can hit that 👎 button 😜,",
+ "hit 👍 and get subscribed!",
)
} else {
b.AssertFileContent("public/page-emoji/index.html",
"This is a :smile:",
"Another :smile:",
- "This is :not: an emoji",
+ "This is :not: :an: :emoji:.",
+ "O :christmas_tree:",
+ "Write me an :e-mail: or :email:?",
+ "Too many colons: :: ::: :::: :?: :!: :.:",
+ "you can hit that :-1: button :stuck_out_tongue_winking_eye:,",
+ "hit :+1: and get subscribed!",
)
}