mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-14 13:14:57 +00:00
11 lines
293 B
Elixir
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
|