diff options
author | Jan Jezabek <jezabek@poczta.onet.pl> | 2008-08-17 19:15:01 +0000 |
---|---|---|
committer | Jan Jezabek <jezabek@poczta.onet.pl> | 2008-08-17 19:15:01 +0000 |
commit | 1fc8ca6257292d60b34a17983696047b24283225 (patch) | |
tree | d8290d906db33c81db8f6ca8f6fd42245269fddb | |
parent | 19a532b297e4da1e6ed22d641ac7ce46a4dbfcf5 (diff) | |
download | swig-1fc8ca6257292d60b34a17983696047b24283225.tar.gz |
Added apply_strings run-test.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-jezabek@10773 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r-- | Examples/test-suite/com/apply_strings_runme.vbs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Examples/test-suite/com/apply_strings_runme.vbs b/Examples/test-suite/com/apply_strings_runme.vbs new file mode 100644 index 000000000..6f737031f --- /dev/null +++ b/Examples/test-suite/com/apply_strings_runme.vbs @@ -0,0 +1,24 @@ +Dim apply_strings, TEST_MESSAGE + +Set apply_strings = CreateObject("apply_strings.apply_strings") +TEST_MESSAGE = "A message from target language to the C++ world and back again." + +If apply_strings.UCharFunction(TEST_MESSAGE) <> TEST_MESSAGE Then + WScript.Echo "UCharFunction failed" + WScript.Quit 1 +End If + +If apply_strings.SCharFunction(TEST_MESSAGE) <> TEST_MESSAGE Then + WScript.Echo "SCharFunction failed" + WScript.Quit 1 +End If + +Dim pChar + +Rem Will fail currently +Set pChar = apply_strings.CharFunction(null) +If pChar <> null Then + WScript.Echo "CharFunction failed" + WScript.Quit 1 +End If + |