Skip to content

Commit

Permalink
update data with latest Text::Unidecode
Browse files Browse the repository at this point in the history
  • Loading branch information
kmike committed Aug 13, 2015
1 parent a844143 commit f87b8db
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ Usage

>>> from text_unidecode import unidecode
>>> unidecode(u'какой-то текст')
u'kakoi-to tiekst'
u'kakoi-to tekst'

Binary file modified src/text_unidecode/data.bin
Binary file not shown.
6 changes: 4 additions & 2 deletions test_unidecode.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
from text_unidecode import unidecode
import pytest


@pytest.mark.parametrize(("text", "result"), [
("Programmes de publicité - Solutions d'entreprise", "Programmes de publicite - Solutions d'entreprise"),
("Транслитерирует и русский", "Translitieriruiet i russkii"),
("Транслитерирует и русский", "Transliteriruet i russkii"),
("kožušček", "kozuscek"),
("北亰", "Bei Jing "),
])
Expand All @@ -18,6 +19,7 @@ def test_7bit_purity(code):
ch = chr(code)
assert unidecode(ch) == ch


def test_7bit_text_purity():
txt = "".join([chr(x) for x in range(128)])
assert unidecode(txt) == txt
assert unidecode(txt) == txt

0 comments on commit f87b8db

Please sign in to comment.