From 2ceb94849cfa4a55af3c61404083613067a1af12 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 11 Feb 2010 23:49:42 +0100 Subject: [PATCH] extended test case --- tests/run/type_inference.pyx | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.26.2