projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix for test warnings
[akkoma]
/
test
/
pleroma
/
emoji_test.exs
diff --git
a/test/pleroma/emoji_test.exs
b/test/pleroma/emoji_test.exs
index 97af252808434e773f9be1a253e21da27aa18c89..027a8132f768fa827f00ae6f41513a8ffc04086f 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
@@
-20,6
+20,11
@@
defmodule Pleroma.EmojiTest do
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?("🏳️⚧️")
+
+ # Additionally, we accept regional indicators.
+ assert Emoji.is_unicode_emoji?("🇵")
+ assert Emoji.is_unicode_emoji?("🇴")
+ assert Emoji.is_unicode_emoji?("🇬")
end
end
end
end