Gonzalo Garramuno
f3fccb5a9d
Added a simple script to check missing tests
...
against other languages and against the generic
directory.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9756 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-03 04:33:23 +00:00
Gonzalo Garramuno
ccf65a1e56
Added support for inheritance in class description,
...
even if not recognized by rdoc yet.
Added autodoc flag to Makefile.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9755 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-03 00:18:15 +00:00
Gonzalo Garramuno
c6ece2bb93
Made autodoc ignore numinputs=0.
...
Added more typemap(doc) for documenting STL
and standard ruby methods.
Added missing RUBY_SELF typemap.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9754 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-02 22:09:06 +00:00
Gonzalo Garramuno
75f1af27a5
Improvements to ruby's autodocumentation.
...
GC.start was failing when ruby was run without verbose warnings. Fixed.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9752 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-02 19:39:53 +00:00
Gonzalo Garramuno
594483bbda
STL stream support for Ruby.
...
docstring and autodoc support for Ruby.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9750 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-02 10:00:26 +00:00
Gonzalo Garramuno
cea5ba04fa
Fixed last test in std_set test suite that was
...
failing due to having been done with old hash sort.
Improved rubycontainer a little bit. Made GC_VALUE
sort an rb_protect function to prevent bad sorting
attempt of an Array against a String.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9747 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-02 01:28:21 +00:00
Gonzalo Garramuno
1b349d4749
Fixed a bug with argout values being incorrectly
...
returned when the first argout/returned element
was an array.
Made std::pair and container returned elements be
frozen (like tuples in python).
Added the std_containers.i test from python and
created a ruby runme file for it.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9746 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 22:40:55 +00:00
Gonzalo Garramuno
68b52c4ee5
Added support for complex numbers.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9743 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 10:37:09 +00:00
Gonzalo Garramuno
a6fa331dae
Fixed VALUE less compare function to be a good GC_VALUE
...
less compare function. This is used for hashing.
Moved the functor over to rubyclasses to avoid bloat
when GC_VALUE is not used.
Updated std::map test to check for equivalence.
Updated CHANGES.current a tad to move the STL
stuff as last and merge two feature updates as one.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9740 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 09:55:44 +00:00
Gonzalo Garramuno
163efb1923
Added set test.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9738 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 06:43:10 +00:00
Gonzalo Garramuno
e7d8816016
Added set test.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9737 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 06:42:52 +00:00
Gonzalo Garramuno
2fd7c775ea
Added new li_std_map.i test to Makefile.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9736 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 05:50:06 +00:00
Gonzalo Garramuno
128386f928
Added li_std_map.i as a generic test.
...
This is the test borrowed from python and changed
to be made generic.
Added ruby's runme script for it too.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9734 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 05:45:21 +00:00
Gonzalo Garramuno
c0a7c7e081
Added proper each(), printing and other methods to map
...
and multimap.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9733 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 05:43:30 +00:00
Gonzalo Garramuno
aa3c28e230
Yet even better swig assert.
...
Added more tests to std::vector for map.
Added dup() function to containers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9732 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 01:54:02 +00:00
Gonzalo Garramuno
293750eaea
Moved the GC_VALUE class over to rubystdcommon
...
so that it will only get added when STL is used.
Documented swig_assert interface.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9731 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 01:21:26 +00:00
Gonzalo Garramuno
a100f16bbd
Fixes to std_map and multimap. There's still a problem
...
of const correctness in the std swig STL library.
Need to bring it up in the swig-devel list.
Added new functions to swig_assert.
Changed some tests to reflect these changes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9730 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 01:08:17 +00:00
Gonzalo Garramuno
7c4d3d8bd8
An improvement to error reporting and
...
more tests added to std::vector.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9723 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-30 17:53:04 +00:00
Gonzalo Garramuno
806d9040c5
Updated CHANGES.current.
...
Fixed problems with insert() and unshift() functions in std::vector for ruby.
Updated Ruby documentation.
Improved swig_assert.rb.
Added "second" singleton to std_pair in ruby.
Modified two tests to follow the new STL stuff.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9721 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-30 09:45:10 +00:00
Gonzalo Garramuno
b2a45de097
Updated std::vector, std::pair tests.
...
Improved swig_gc.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9720 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-30 06:37:41 +00:00
Gonzalo Garramuno
c1119d264a
Improved the swig_gc.rb interface.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9718 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 23:52:22 +00:00
Gonzalo Garramuno
ca5f54f668
Made GC.stats report things only in verbose mode.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9717 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 23:41:56 +00:00
Gonzalo Garramuno
522403958e
Added new tests.
...
Updated swig_gc interface to make it simpler.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9696 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-28 17:45:32 +00:00
Gonzalo Garramuno
fd79f15521
Added new swig_gc.rb file to obtain easy stats
...
from ruby's GC.
Updated newobject1_* tests to use it.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9695 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-28 17:29:11 +00:00
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