Perl added to the Unified typemap library, cleaner way to use the library, and 'normalized' macro names
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7707 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f2324be428
commit
f2f1b9889f
112 changed files with 3262 additions and 3375 deletions
|
|
@ -38,3 +38,47 @@ rescue TypeError
|
|||
end
|
||||
|
||||
raise RuntimeError if fail != 1
|
||||
|
||||
|
||||
raise RuntimeError if val_double_2(1.0) != 4.0
|
||||
raise RuntimeError if val_double_2(1) != 4
|
||||
raise RuntimeError if val_double_2(1,1) != 2
|
||||
|
||||
fail = 0
|
||||
begin
|
||||
val_double_2("1.0",1.0)
|
||||
rescue
|
||||
fail = 1
|
||||
end
|
||||
raise RuntimeError if fail != 1
|
||||
|
||||
|
||||
fail = 0
|
||||
begin
|
||||
val_double_2(1.0,"1.0")
|
||||
rescue
|
||||
fail = 1
|
||||
end
|
||||
raise RuntimeError if fail != 1
|
||||
|
||||
|
||||
raise RuntimeError if val_float_2(1.0) != 4.0
|
||||
raise RuntimeError if val_float_2(1) != 4
|
||||
raise RuntimeError if val_float_2(1,1) != 2
|
||||
|
||||
fail = 0
|
||||
begin
|
||||
val_float_2("1.0",1.0)
|
||||
rescue
|
||||
fail = 1
|
||||
end
|
||||
raise RuntimeError if fail != 1
|
||||
|
||||
|
||||
fail = 0
|
||||
begin
|
||||
val_float_2(1.0,"1.0")
|
||||
rescue
|
||||
fail = 1
|
||||
end
|
||||
raise RuntimeError if fail != 1
|
||||
|
|
|
|||
|
|
@ -3,6 +3,5 @@ require 'virtual_derivation'
|
|||
b = Virtual_derivation::B.new 3
|
||||
|
||||
if b.get_a() != b.get_b()
|
||||
print "something is really wrong ", b.get_a(), "\n"
|
||||
raise RuntimeError
|
||||
print "something is still wrong ", b.get_a(), b.get_b(), "\n"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue