projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix emoji tests
[akkoma]
/
test
/
pleroma
/
emoji_test.exs
diff --git
a/test/pleroma/emoji_test.exs
b/test/pleroma/emoji_test.exs
index 9cfd7b46b3d93ca14c98294e445085dce2357259..fe7fd111c8fc417ef0a9b6e60d3e68ad499810ec 100644
(file)
--- a/
test/pleroma/emoji_test.exs
+++ b/
test/pleroma/emoji_test.exs
@@
-1,9
+1,9
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.EmojiTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.EmojiTest do
- use ExUnit.Case
+ use ExUnit.Case
, async: true
alias Pleroma.Emoji
describe "is_unicode_emoji?/1" do
alias Pleroma.Emoji
describe "is_unicode_emoji?/1" do
@@
-11,10
+11,10
@@
defmodule Pleroma.EmojiTest do
refute Emoji.is_unicode_emoji?("X")
refute Emoji.is_unicode_emoji?("ね")
refute Emoji.is_unicode_emoji?("X")
refute Emoji.is_unicode_emoji?("ね")
- #
Only accept fully-qualified (RGI)
emoji
+ #
Accept fully-qualified and unqualified
emoji
# See http://www.unicode.org/reports/tr51/
# See http://www.unicode.org/reports/tr51/
-
refute
Emoji.is_unicode_emoji?("❤")
-
refute
Emoji.is_unicode_emoji?("☂")
+
assert
Emoji.is_unicode_emoji?("❤")
+
assert
Emoji.is_unicode_emoji?("☂")
assert Emoji.is_unicode_emoji?("🥺")
assert Emoji.is_unicode_emoji?("🤰")
assert Emoji.is_unicode_emoji?("🥺")
assert Emoji.is_unicode_emoji?("🤰")