From d944a66ead38b15b5a3c7a4ae8b054451fd5c077 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 8 Jan 2014 22:41:22 +0200 Subject: [PATCH] Add string comparison tests. Use computed string to exercise string interning code better. --- tests/basics/tests/string1.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/basics/tests/string1.py b/tests/basics/tests/string1.py index 9d6f21d132..3fecf799be 100644 --- a/tests/basics/tests/string1.py +++ b/tests/basics/tests/string1.py @@ -10,3 +10,10 @@ print('123' + "456") # iter print(list('str')) + +print('123' + '789' == '123789') +print('a' + 'b' != 'a' + 'b ') + +# Not implemented so far +# print('1' + '2' > '2') +# print('1' + '2' < '2')