Skip to content

Commit

Permalink
Tests for #186
Browse files Browse the repository at this point in the history
probably
ff32b33
  • Loading branch information
unhammer committed Aug 15, 2024
1 parent 3a33dae commit b120c0f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/data/baregroup-mono.dix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<dictionary>
<alphabet>ABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÄÅÆÇÈÉÊËÍÑÒÓÔÕÖØÙÚÜČĐŊŠŦŽabcdefghijklmnopqrstuvwxyzàáâäåæçèéêëíñòóôõöøùúüčđŋšŧž­-</alphabet>
<sdefs>
<sdef n="n"/>
<sdef n="ind"/>
<sdef n="f"/>
<sdef n="pl"/>
<sdef n="sg"/>
</sdefs>
<pardefs>
</pardefs>

<section id="main" type="standard">
<e lm="# fri" r="RL"><ig><b/>fri</ig></e>
<e lm="# frå kvarandre" r="RL"><ig><b/>frå<b/>kvarandre</ig></e>
</section>

</dictionary>
8 changes: 8 additions & 0 deletions tests/lt_proc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,14 @@ class Bigen(ProcTest):
inputs = ["^ab<n><def>$"]
expectedOutputs = ["^ab<n><def>/abc$"]

class BigenGroup(ProcTest):
"""Test that bare <g> without tags can be generated in biltrans mode."""
procdix = "data/baregroup-mono.dix"
procflags = ['-g', '-b', '-z']
procdir = "rl"
inputs = ["^# fri$", "^# frå kvarandre$"]
expectedOutputs = ["^# fri/ fri$", "^# frå kvarandre/ frå kvarandre$"]

class BiltransEscapedAsterisk(ProcTest):
procdix = "data/minimal-bi.dix"
procflags = ['-b', '-z']
Expand Down

0 comments on commit b120c0f

Please sign in to comment.