Source

Kiva Editor's Assistant / tests / test.py

Diff from to

tests/test.py

 
 
 def test_alphanumeric():
+    """Test combinations of letters and numbers"""
     expect(u'', u'')
     expect(u'100p of 43th', u'100 p of 43 th')
     expect(u'0th')
 
 
 def test_asterisk():
+    """Test handling of asterisks used as footnote indicators."""
     expect(u'*foo')
     expect(u'* foo', u'*foo')
     expect(u'foo * bar', u'foo* bar')
     expect(u'foo* bar')
 
 
-def test_currency():
-    """Test recognition of currency abbreviations."""
-    expect('Ksh.5,000', '5,000 Kenyan Shilling (KES)')
-    expect('Ksh.50, 000', '50,000 Kenyan Shilling (KES)')
-    expect('Php11, 000', '11,000 Philippine Peso (PHP)')
-    #expect('Php11,000, 100 PHP', '11,000 Philippine Peso (PHP), 100 PHP')
-    expect('180,000/= and 50/=', '180,000 Uganda Shilling (UGX) and 50 UGX')
-    expect('100 usd', '$100')
-    expect('usd 100', '$100')
-
-    expect('100 usd and 200 usd then', '$100 and $200 then')
-    expect('100 usd and usd 200 then', '$100 and $200 then')
-    expect('usd 100 and 200 usd then', '$100 and $200 then')
-    expect('usd 100 and usd 200 then', '$100 and $200 then')
-
-    expect('100 usd 200') # ambiguous, so unchanged
-    #expect('100 usd 200 usd', '$100 $200')
-    #expect('usd 100 usd 200', '$100 $200')
-
-
 def test_honorifics():
     """Test recognition and capitalization of honorifics."""
     expect('mr.', 'Mr.')
 
 
 def test_output_generation():
+    """Test spacing of punctuation in output."""
     expect(u'hello, world')
     expect(u'Kiva/SMT')