fix git support for v1.5.3 (or higher) by setting "--work-tree"
[translate_toolkit.git] / lang / test_el.py
blob8960162891cb67c36b372c30822777bf38c7dc69
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
4 from translate.lang import factory
6 def test_punctranslate():
7 """Tests that we can translate punctuation."""
8 language = factory.getlanguage('el')
9 assert language.punctranslate(u"abc efg") == u"abc efg"
10 assert language.punctranslate(u"abc efg. hij.") == u"abc efg. hij."
11 assert language.punctranslate(u"abc efg;") == u"abc efg·"
12 assert language.punctranslate(u"abc efg? hij!") == u"abc efg; hij!"
14 def test_sentences():
15 """Tests basic functionality of sentence segmentation."""
16 language = factory.getlanguage('el')
17 sentences = language.sentences(u"Θέλετε να αποθηκεύσετε το παιχνίδι σας; (Θα σβησθούν οι Αυτόματες-Αποθηκεύσεις)")
18 assert sentences == [u"Θέλετε να αποθηκεύσετε το παιχνίδι σας;", u"(Θα σβησθούν οι Αυτόματες-Αποθηκεύσεις)"]