akkoma/test/pleroma/iso639_test.exs
FloatingGhost ff5793198f
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending
add inbound language test
2023-01-11 15:42:13 +00:00

11 lines
293 B
Elixir

defmodule Pleroma.ISO639Test do
use Pleroma.DataCase
describe "ISO639 validation" do
test "should validate a language" do
assert Pleroma.ISO639.valid_alpha2?("en")
assert Pleroma.ISO639.valid_alpha2?("ja")
refute Pleroma.ISO639.valid_alpha2?("xx")
end
end
end