liblangtag/tests/basic/test.py
Akira TAGOH e7757d5f48 Add CI test
Resolves: rhbz#2008783
2021-09-29 16:51:12 +09:00

13 lines
218 B
Python

#! /usr/bin/python3
import gi
gi.require_version('LangTag', '0.6')
from gi.repository import LangTag
tag = LangTag.Tag.new()
if not tag.parse("en-Latn-US"):
exit(1)
if tag.canonicalize() != 'en-US':
exit(1)