MCPcopy Create free account
hub / github.com/clips/pattern / test_extract_leading_zeros

Method test_extract_leading_zeros

test/test_en.py:208–215  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

206 pass
207
208 def test_extract_leading_zeros(self):
209 # Assert "zero zero one" => ("one", 2).
210 from pattern.text.en.inflect_quantify import zshift
211 v = zshift("zero zero one")
212 self.assertEqual(v, ("one", 2))
213 v = zshift("0 0 one")
214 self.assertEqual(v, ("one", 2))
215 print "pattern.en.quantify._extract_leading_zeros()"
216
217 def test_numerals(self):
218 # Assert number to numerals.

Callers

nothing calls this directly

Calls 1

zshiftFunction · 0.90

Tested by

no test coverage detected