add inbound language test
ci/woodpecker/push/woodpecker Pipeline is pending
Details
ci/woodpecker/push/woodpecker Pipeline is pending
Details
parent
78c44f31ca
commit
ff5793198f
@ -0,0 +1,38 @@
|
||||
{
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
{
|
||||
"ostatus": "http://ostatus.org#",
|
||||
"atomUri": "ostatus:atomUri",
|
||||
"inReplyToAtomUri": "ostatus:inReplyToAtomUri",
|
||||
"conversation": "ostatus:conversation",
|
||||
"sensitive": "as:sensitive",
|
||||
"toot": "http://joinmastodon.org/ns#",
|
||||
"votersCount": "toot:votersCount"
|
||||
}
|
||||
],
|
||||
"id": "https://mastodon.social/users/akkoma_ap_integration_tester/statuses/109671288784583764",
|
||||
"type": "Note",
|
||||
"summary": null,
|
||||
"inReplyTo": null,
|
||||
"published": "2023-01-11T15:31:01Z",
|
||||
"url": "https://mastodon.social/@akkoma_ap_integration_tester/109671288784583764",
|
||||
"attributedTo": "https://mastodon.social/users/akkoma_ap_integration_tester",
|
||||
"to": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"cc": [
|
||||
"https://mastodon.social/users/akkoma_ap_integration_tester/followers"
|
||||
],
|
||||
"sensitive": false,
|
||||
"atomUri": "https://mastodon.social/users/akkoma_ap_integration_tester/statuses/109671288784583764",
|
||||
"inReplyToAtomUri": null,
|
||||
"conversation": "tag:mastodon.social,2023-01-11:objectId=376794415:objectType=Conversation",
|
||||
"content": "<p>tag</p>",
|
||||
"contentMap": {
|
||||
"ja": "<p>tag</p>"
|
||||
},
|
||||
"attachment": [],
|
||||
"tag": [],
|
||||
"replies": []
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
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
|
Loading…
Reference in new issue