[ruby] add a few tests for std::wstring
This commit is contained in:
parent
904bc2ad52
commit
bfe7204576
3 changed files with 27 additions and 0 deletions
22
Examples/test-suite/ruby/li_std_wstring_runme.rb
Normal file
22
Examples/test-suite/ruby/li_std_wstring_runme.rb
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
require 'swig_assert'
|
||||
require 'li_std_wstring'
|
||||
|
||||
x = "h"
|
||||
|
||||
swig_assert_equal("Li_std_wstring.test_value(x)", "x", binding)
|
||||
|
||||
|
||||
x = "abc"
|
||||
|
||||
swig_assert_equal("Li_std_wstring.test_value(x)", "x", binding)
|
||||
|
||||
x = "hello"
|
||||
|
||||
swig_assert_equal("Li_std_wstring.test_const_reference(x)", "x", binding)
|
||||
|
||||
a = Li_std_wstring::A.new(x)
|
||||
|
||||
swig_assert_equal("Li_std_wstring.test_value(a)", "x", binding)
|
||||
|
||||
swig_assert_equal("Li_std_wstring.test_value(x)", "x", binding)
|
||||
Loading…
Add table
Add a link
Reference in a new issue