1.1 --- a/tests/numbers.py Sun Jan 15 16:18:03 2017 +0100
1.2 +++ b/tests/numbers.py Sun Jan 15 18:10:54 2017 +0100
1.3 @@ -1,3 +1,5 @@
1.4 +# -*- coding: ISO-8859-1 -*-
1.5 +
1.6 import sys
1.7
1.8 print "# sys.maxint: ",
1.9 @@ -52,3 +54,15 @@
1.10
1.11 print "# hash((sys.maxint - 1, 0)): ",
1.12 print hash((sys.maxint - 1, 0))
1.13 +
1.14 +# Test combining numbers with strings.
1.15 +
1.16 +s = "Number is " + str(123)
1.17 +s2 = "זרו -> " + str(123)
1.18 +print s.__class__
1.19 +print s2.__class__
1.20 +print s
1.21 +print s2
1.22 +
1.23 +sys.stdout.encoding = "UTF-8"
1.24 +print s2