more fixes/tests for empty strings

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9083 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-05-04 04:45:41 +00:00
commit 20339de8b4
6 changed files with 80 additions and 3 deletions

View file

@ -119,3 +119,14 @@ if li_std_string.test_reference_input("hello") != "hello":
s = li_std_string.test_reference_inout("hello")
if s != "hellohello":
raise RuntimeError
if li_std_string.empty() != "":
raise RuntimeError
if li_std_string.c_empty() != "":
raise RuntimeError
if li_std_string.c_null() != None:
raise RuntimeError