/trunk/Examples/test-suite/python/li_cwstring_runme.py
Python | 29 lines | 19 code | 10 blank | 0 comment | 9 complexity | b8185a63ac81dfae8be99eee8f04d7ad MD5 | raw file
1from li_cwstring import * 2 3if count(u"ab\0ab\0ab\0", 0) != 3: 4 raise RuntimeError 5 6if test1() != u"Hello World": 7 raise RuntimeError 8 9if test2() != u" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_": 10 raise RuntimeError 11 12if test3("hello") != u"hello-suffix": 13 raise RuntimeError 14 15if test4("hello") != u"hello-suffix": 16 raise RuntimeError 17 18if test5(4) != u'xxxx': 19 raise RuntimeError 20 21if test6(10) != u'xxxxx': 22 raise RuntimeError 23 24if test7() != u"Hello world!": 25 raise RuntimeError 26 27if test8() != u" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_": 28 raise RuntimeError 29