Added some more tests for c file wraps.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9928 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d1defceb95
commit
8682f0cbaf
6 changed files with 252 additions and 0 deletions
22
Examples/test-suite/ruby/li_cstring_runme.rb
Executable file
22
Examples/test-suite/ruby/li_cstring_runme.rb
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env ruby
|
||||
#
|
||||
# Test for li_cstring.i
|
||||
#
|
||||
|
||||
require 'swig_assert'
|
||||
require 'li_cstring'
|
||||
|
||||
include Li_cstring
|
||||
|
||||
swig_assert_each_line <<EOF
|
||||
count("hello", 'l'[0]) == 2
|
||||
test1 == 'Hello World'
|
||||
test2
|
||||
test3('hello') == 'hello-suffix'
|
||||
test4('hello') == 'hello-suffix'
|
||||
test5(5) == 'xxxxx'
|
||||
test6(6) == 'xxx'
|
||||
test7 == 'Hello world!'
|
||||
test8 == (32..32+63).map {|x| x.chr }.join
|
||||
EOF
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue