Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a failing test that exposes a bug in the new architecture

  • Loading branch information...
commit f2938c46765ebc7d4bff435d1c0fbc6ae44ee29f 1 parent 5b7f12d
@batterseapower batterseapower authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 pinyin/tests/updatergraph.py
View
9 pinyin/tests/updatergraph.py
@@ -99,7 +99,14 @@ def testEverythingFrench(self):
"audio" : u"[sound:" + os.path.join("Test", "shu1.ogg") + "]",
"color" : u'<span style="color:#ff0000">书</span>',
"trad" : u"", "simp" : u""
- })
+ })
+
+ def testFrenchMeaningFallbackOnGoogleEvenIfWeHaveMWs(self):
+ config = dict(fallbackongoogletranslate = True, dictlanguage = "fr")
+ self.assertProduces({ "expression" : u"", "mwfieldinfact" : True }, config, {
+ "meaning" : "Livre",
+ "mw" : u'<span style="color:#00aa00">本</span> - <span style="color:#00aa00">běn</span>, <span style="color:#0000ff">册</span> - <span style="color:#0000ff">cè</span>, <span style="color:#0000ff">部</span> - <span style="color:#0000ff">bù</span>'
+ })
def testPreservesWhitespace(self):
config = dict(forceexpressiontobesimptrad = False, tonedisplay = "tonified", colorizedpinyingeneration = False)
Please sign in to comment.
Something went wrong with that request. Please try again.