Test-suite: Unify string quoting in the Python sources

This commit is contained in:
Dmitry D. Chernov 2019-07-14 12:58:21 +10:00
commit fa5f519bf9
23 changed files with 146 additions and 146 deletions

View file

@ -1,26 +1,26 @@
from char_binary import *
t = Test()
if t.strlen('hile') != 4:
print t.strlen('hile')
if t.strlen("hile") != 4:
print t.strlen("hile")
raise RuntimeError, "bad multi-arg typemap"
if t.ustrlen('hile') != 4:
print t.ustrlen('hile')
if t.ustrlen("hile") != 4:
print t.ustrlen("hile")
raise RuntimeError, "bad multi-arg typemap"
if t.strlen('hil\0') != 4:
if t.strlen("hil\0") != 4:
raise RuntimeError, "bad multi-arg typemap"
if t.ustrlen('hil\0') != 4:
if t.ustrlen("hil\0") != 4:
raise RuntimeError, "bad multi-arg typemap"
#
# creating a raw char*
#
pc = new_pchar(5)
pchar_setitem(pc, 0, 'h')
pchar_setitem(pc, 1, 'o')
pchar_setitem(pc, 2, 'l')
pchar_setitem(pc, 3, 'a')
pchar_setitem(pc, 0, "h")
pchar_setitem(pc, 1, "o")
pchar_setitem(pc, 2, "l")
pchar_setitem(pc, 3, "a")
pchar_setitem(pc, 4, 0)