mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 14:10:31 +03:00
parent
7cb8107735
commit
b6635e1baf
2 changed files with 7 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue