Skip to content

Commit

Permalink
add another unit test for multi stroke suffix folding
Browse files Browse the repository at this point in the history
  • Loading branch information
balshetzer committed Jul 22, 2013
1 parent a6317ac commit 4f0c054
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plover/test_translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,15 @@ def test_suffix_folding(self):
self.translate(stroke('K-LG'))
self.assertTranslations(lt)

def test_suffix_folding_multi_stroke(self):
self.define('K/-L', 'look')
self.define('-G', '{^ing}')
lt = self.lt('K/-LG')
self.assertEqual(lt[0].english, 'look {^ing}')
self.translate(stroke('K'))
self.translate(stroke('-LG'))
self.assertTranslations(lt)

def test_suffix_folding_no_suffix(self):
self.define('K-L', 'look')
lt = self.lt('K-LG')
Expand Down

0 comments on commit 4f0c054

Please sign in to comment.