Skip to content

Commit 649b025

Browse files
author
webdev778
committed
Introduce a basic smoke test
1 parent cd17cf8 commit 649b025

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

tests/__init__.py

Whitespace-only changes.

tests/test_interscript.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import interscript
2+
3+
def assert_transliteration(map, input, output):
4+
interscript.load_map(map)
5+
result = interscript.transliterate(map, input)
6+
assert result == output
7+
8+
def test_can_transliterate():
9+
assert_transliteration('bgnpcgn-ukr-Cyrl-Latn-2019', 'Антон', 'Anton')
10+
11+
def test_can_transliterate_maps_requiring_libraries():
12+
assert_transliteration('bgnpcgn-deu-Latn-Latn-2000', 'Tschüß!', 'Tschueß!')

0 commit comments

Comments
 (0)