From: Stefan Behnel Date: Thu, 11 Feb 2010 22:49:42 +0000 (+0100) Subject: extended test case X-Git-Tag: 0.13.beta0~340^2~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2ceb94849cfa4a55af3c61404083613067a1af12;p=cython.git extended test case --- diff --git a/tests/run/type_inference.pyx b/tests/run/type_inference.pyx index 8517a103..7877f2ce 100644 --- a/tests/run/type_inference.pyx +++ b/tests/run/type_inference.pyx @@ -116,7 +116,11 @@ def builtin_type_operations(): assert typeof(u1) == "unicode object", typeof(u1) u2 = u'a' + u'b' assert typeof(u2) == "unicode object", typeof(u2) + u3 = u'a%s' % u'b' + u3 = u'a%s' % 10 + assert typeof(u3) == "unicode object", typeof(u3) s1 = "abc %s" % "x" + s1 = "abc %s" % 10 assert typeof(s1) == "str object", typeof(s1) s2 = "abc %s" + "x" assert typeof(s2) == "str object", typeof(s2)