The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6fcc22a1f8
commit
516036631c
1508 changed files with 125983 additions and 44037 deletions
|
|
@ -1,25 +0,0 @@
|
|||
# file: run.rb
|
||||
|
||||
require 'example'
|
||||
|
||||
print "ICONST = ", Example::ICONST, " (should be 42)\n"
|
||||
print "FCONST = ", Example::FCONST, " (should be 2.1828)\n"
|
||||
print "CCONST = ", Example::CCONST, " (should be 'x')\n"
|
||||
print "CCONST2 = ", Example::CCONST2, " (this should be on a new line)\n"
|
||||
print "SCONST = ", Example::SCONST, " (should be 'Hello World')\n"
|
||||
print "SCONST2 = ", Example::SCONST2, " (should be '\"Hello World\"')\n"
|
||||
print "EXPR = ", Example::EXPR, " (should be 48.5484)\n"
|
||||
print "iconst = ", Example::Iconst, " (should be 37)\n"
|
||||
print "fconst = ", Example::Fconst, " (should be 3.14)\n"
|
||||
|
||||
begin
|
||||
print "EXTERN = ", Example::EXTERN, " (Arg! This shouldn't print anything)\n"
|
||||
rescue NameError
|
||||
print "EXTERN isn't defined (good)\n"
|
||||
end
|
||||
|
||||
begin
|
||||
print "FOO = ", Example::FOO, " (Arg! This shouldn't print anything)\n"
|
||||
rescue NameError
|
||||
print "FOO isn't defined (good)\n"
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue