Gonzalo Garramuno
bbee2e374c
Updated some tests to use swig_assert.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9694 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-28 15:54:50 +00:00
Gonzalo Garramuno
5be075f16f
Added some runtime tests for ruby.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9693 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-28 15:52:50 +00:00
Gonzalo Garramuno
928f12bd44
Updated swig_assert to optionally be more verbose
...
and report stack traces nicelly.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9692 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-28 15:50:35 +00:00
Gonzalo Garramuno
4b8d11d0e2
Fixed ruby's newobject1 and newobject2 demos.
...
Added swig_assert.rb and started using it in some tests.
Added my patches to ruby.cxx, rubyrun.swg, rubystrings.swg
and rubytracking.swg [see: sourceforge]
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9691 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-28 04:20:28 +00:00
John Lenz
6dda6f8321
Remove cvsignore files: this is stored on svn:igonre property now
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9593 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-03 08:28:42 +00:00
Olly Betts
b18f84692d
Use the ruby interpreter which configure found rather than just assuming it's
...
called "ruby".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9335 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 22:39:39 +00:00
Marcelo Matus
20339de8b4
more fixes/tests for empty strings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9083 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-04 04:45:41 +00:00
William S Fulton
53ceae6a0a
fix for perl keyword
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8990 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 23:05:11 +00:00
Charlie Savage
266557d640
Added support for li_factory test to Ruby.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8983 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 19:44:37 +00:00
Marcelo Matus
f77b1da32e
add option to use valgrind
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8876 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 07:17:49 +00:00
Charlie Savage
e66f81f904
Fixed a bug in Ruby's object tracking functionality. Previously, an object could be returned even if it did not have the correct type. This could occur if a factory class' creation method had a signature returning a base type (like geometry) but in reality a subclass (like Point) was returned. In that case, it would then be impossible to implement a "downcast" method and get back a Ruby object of type Point. Also updated the test-suite to test this situation.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8861 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-22 08:20:48 +00:00
Marcelo Matus
3d6ad6e78d
fix for directors, now the test-suite runs again using -directors
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8856 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-21 11:20:09 +00:00
Charlie Savage
b3fd2c21f9
New test for using Ruby keywords as method names.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8764 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-09 21:05:18 +00:00
Marcelo Matus
1fb7d818d0
fix ruby kw warnings, all can be methods
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8760 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-09 20:07:44 +00:00
Marcelo Matus
c7bc81c745
fix predicate, excluding template case
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8759 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-09 17:34:52 +00:00
Marcelo Matus
01893da18e
fixes for %templates/%rename/%features + templates
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8720 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-05 20:25:43 +00:00
Marcelo Matus
495c5e6306
add test for 'void *' argument
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8706 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-04 00:34:12 +00:00
Marcelo Matus
21fba428df
cosmetic fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8684 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-02 23:24:01 +00:00
Charlie Savage
7d9cdf76be
Fixed error in test which checked for an incorrect method name.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8676 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-02 09:02:40 +00:00
Marcelo Matus
19ce5762f0
reenable missing INPUT/OUTPUT, and add tests for std::string
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8637 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 19:55:43 +00:00
Marcelo Matus
d6757125c2
add/fix std_string test with %naturalvar
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8627 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 06:14:35 +00:00
Marcelo Matus
6a4cf00db3
fix MSC problem with def. constructor
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8510 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-22 00:03:09 +00:00
Marcelo Matus
12eff10b64
fix runtest to match new rule for enums
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8483 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-19 04:54:19 +00:00
Charlie Savage
5949320325
Updated test case for naming rules.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8468 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-16 10:46:25 +00:00
Charlie Savage
29a4b0aca4
Updated tests for constants.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8457 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 09:02:54 +00:00
Charlie Savage
e33f9e9b62
New Ruby test case for checking renames, predicate methods, bang methods and constants.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8445 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 00:50:49 +00:00
Charlie Savage
46bb25e661
Changed -norename to -noautorename.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8440 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-14 22:32:43 +00:00
Charlie Savage
9a15da5790
Added option to send to SWIG that controls whether the new rename mechanism for Ruby is used. By default it is turned off.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8438 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-14 22:12:40 +00:00
Charlie Savage
6c8dd53ee8
Reimplementation of tracking objects in Ruby. Instead of passing the $track flag to
...
the methods SWIG_Ruby_ConvertPtrAndOwn and SWIG_Ruby_NewPointerObj,
now tracking information is held on swig_class. This change reduces
significantly reduces the amount of code needed in ruby.cxx, is more robust, and is
more cohesive.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8082 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 18:02:51 +00:00
William S Fulton
f736ec91c2
Get clean target working again
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7873 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-26 09:36:21 +00:00
Marcelo Matus
1fa14f74a7
add disown.i and li_attribute.i
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7726 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-26 07:08:18 +00:00
Marcelo Matus
3428bf10a6
add interpreter variable, so it can be used with valgrind
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7720 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-25 14:51:41 +00:00
Marcelo Matus
8be1b7a07c
move attribute.i to the typemap library, now is usable from all the languages
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7717 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-25 13:20:50 +00:00
Marcelo Matus
3c65cea431
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/SWIG@7707 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-24 14:59:05 +00:00
Marcelo Matus
7564088646
fix warnings/errors for gcc4.0, icc and valgrind
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7689 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-19 14:26:13 +00:00
Marcelo Matus
7e5e4fd1f9
massive typemap unification
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7676 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-18 13:24:15 +00:00
William S Fulton
d2f5672abb
fix runtime error (Ruby 1.8.1 doesn't seem to parse this special character)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7632 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-09 07:58:43 +00:00
Charlie Savage
b7743e64af
New test case for char_constant test.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7626 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-08 19:53:07 +00:00
Charlie Savage
10c00d74b0
Test case for object tracking.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7624 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-08 19:48:39 +00:00
Charlie Savage
db123cc55f
Remove dependency on Ruby unit test framework.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7529 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-25 07:13:41 +00:00
Charlie Savage
ed80d73e73
Added track_objects_directors test.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7526 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-24 22:36:36 +00:00
Charlie Savage
c8a76f8587
Added test case for Ruby using track objects and directors at the same time.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7524 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-24 22:30:30 +00:00
William S Fulton
ea310550fa
correct last checkin
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7514 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-24 09:48:22 +00:00
William S Fulton
a6ac0941e7
move ruby only test to ruby directory
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7512 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-24 09:20:19 +00:00
Charlie Savage
84ec697807
New test objects test suite.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7502 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-23 21:46:33 +00:00
Charlie Savage
5cff7abd73
Updates to examples so that they run correctly under Ruby 1.8
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7491 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-23 17:36:37 +00:00
Marcelo Matus
3658b9adb9
warning fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6873 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-13 22:12:48 +00:00
Marcelo Matus
c98340f0a7
fix directorout typemap for const std::string&. Adding warning about the new typemap, which is not thread safe
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6872 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-13 20:22:19 +00:00
Marcelo Matus
256dcda5f8
add test case using 'super'
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6864 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-12 21:40:18 +00:00
William S Fulton
0ff8f64262
simple const enum SWIGTYPE & typemap test and enum by value runtime test
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6790 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:43:39 +00:00