Commit 2ceb9484 authored by Stefan Behnel's avatar Stefan Behnel

extended test case

parent 085d0c56
...@@ -116,7 +116,11 @@ def builtin_type_operations(): ...@@ -116,7 +116,11 @@ def builtin_type_operations():
assert typeof(u1) == "unicode object", typeof(u1) assert typeof(u1) == "unicode object", typeof(u1)
u2 = u'a' + u'b' u2 = u'a' + u'b'
assert typeof(u2) == "unicode object", typeof(u2) 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" % "x"
s1 = "abc %s" % 10
assert typeof(s1) == "str object", typeof(s1) assert typeof(s1) == "str object", typeof(s1)
s2 = "abc %s" + "x" s2 = "abc %s" + "x"
assert typeof(s2) == "str object", typeof(s2) assert typeof(s2) == "str object", typeof(s2)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment