diff options
author | Charlie Savage <cfis@interserv.com> | 2005-10-08 19:53:07 +0000 |
---|---|---|
committer | Charlie Savage <cfis@interserv.com> | 2005-10-08 19:53:07 +0000 |
commit | 0ecce01d8f1fc70feee980a7a699c31870d3c808 (patch) | |
tree | 1429399381889e16a2311ca3053158d2bea4b749 | |
parent | a17e510b41e7dd31404488ad9e7568657c899812 (diff) | |
download | swig-0ecce01d8f1fc70feee980a7a699c31870d3c808.tar.gz |
New test case for char_constant test.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7626 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r-- | SWIG/Examples/test-suite/ruby/char_constant_runme.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/SWIG/Examples/test-suite/ruby/char_constant_runme.rb b/SWIG/Examples/test-suite/ruby/char_constant_runme.rb new file mode 100644 index 000000000..c00941e79 --- /dev/null +++ b/SWIG/Examples/test-suite/ruby/char_constant_runme.rb @@ -0,0 +1,23 @@ +require 'char_constant' + + +if Char_constant::CHAR_CONSTANT != 'x' + raise RuntimeError, "Invalid value for CHAR_CONSTANT." +end + +if Char_constant::STRING_CONSTANT != 'xyzzy' + raise RuntimeError, "Invalid value for STRING_CONSTANT." +end + +if Char_constant::ESC_CONST != "\001" + raise RuntimeError, "Invalid value for ESC_CONST." +end + +if Char_constant::NULL_CONST != "\000" + raise RuntimeError, "Invalid value for NULL_CONST." +end + +if Char_constant::SPECIALCHAR != 'á' + raise RuntimeError, "Invalid value for SPECIALCHAR." +end + |