summaryrefslogtreecommitdiffstats
path: root/helpers/emoji_test.go
diff options
context:
space:
mode:
authorCameron Moore <moorereason@gmail.com>2016-08-29 17:34:48 -0500
committerBjΓΈrn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-08-30 00:34:48 +0200
commitb6635e1bafecb0a0f203c9ac9672c99ef1a6fa71 (patch)
tree2ed9c6c8862271c725728d6e5547bb2632702f87 /helpers/emoji_test.go
parent7cb8107735d8612a26ad95dfdec2141b0e0e6baa (diff)
helpers: Fix bug in emoji renderer
Fixes #2391
Diffstat (limited to 'helpers/emoji_test.go')
-rw-r--r--helpers/emoji_test.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/helpers/emoji_test.go b/helpers/emoji_test.go
index 70c54cd55..ede601b7a 100644
--- a/helpers/emoji_test.go
+++ b/helpers/emoji_test.go
@@ -53,12 +53,17 @@ func TestEmojiCustom(t *testing.T) {
🍺`)},
{"test :\n```bash\nthis is a test\n```\n\ntest\n\n:cool::blush:::pizza:\\:blush : : blush: :pizza:", []byte("test :\n```bash\nthis is a test\n```\n\ntest\n\nπŸ†’πŸ˜Š:πŸ•\\:blush : : blush: πŸ•")},
+ {
+ // 2391
+ "[a](http://gohugo.io) :smile: [r](http://gohugo.io/introduction/overview/) :beer:",
+ []byte(`[a](http://gohugo.io) πŸ˜„ [r](http://gohugo.io/introduction/overview/) 🍺`),
+ },
} {
result := Emojify([]byte(this.input))
if !reflect.DeepEqual(result, this.expect) {
- t.Errorf("[%d] got '%q' but expected %q", i, result, this.expect)
+ t.Errorf("[%d] got %q but expected %q", i, result, this.expect)
}
}