Klaus Kämpf
9e2c35f766
Make string encoding explitic
...
Ruby 2.0 enforces explicit string encodings. The char_constant
testcase fails because the internal (SWIG_FromCharPtrAndSize, using
rb_str_new) defaults to ASCII-8BIT while the test-suite file defaults
to the current shell LOCALE setting.
This patch sets the char_constant_runme.rb encoding to ASCII-8BIT.
2013-11-29 14:02:51 +01:00
William S Fulton
5d529d5a76
Ruby 1.9 fixes.
...
SF Bug#1292 - Runtime fixes for Proc changes in ruby-1.9 when using STL wrappers that override the default predicate, such as:
%template(Map) std::map<swig::LANGUAGE_OBJ, swig::LANGUAGE_OBJ, swig::BinaryPredicate<> >;
Fixes li_std_functors testcases for Ruby 1.9.
Also rb_respond_to return values have changed subtely in 1.9 and return should be treated as a flag instead of checking for Qtrue, see SF Bug #1159 .
Also fix li_std_map, li_std_set silently failing - rb_protect behaviour seems to have changed when an exception is thrown, so code has been changed to use rb_rescue. A call to 'rb_set_errinfo(Qnil)' could have solved this after the rb_protect call, but it is only available in 1.9+ and Ruby API changes are not easily and transparently detectable.
2013-04-05 23:41:59 +01:00
William S Fulton
ee92a26819
Fixes for out of source builds for Ruby test-suite
2013-04-02 22:21:48 +01:00
William S Fulton
8801ea3f11
Fix incorrect assumptions in Ruby li_std_set test
2013-03-31 00:21:12 +00:00
William S Fulton
2e0d1b12dc
Fix delete_if (reject!) for the STL container wrappers.
...
Previously they would sometimes seg fault or not work.
2013-03-29 06:28:15 +00:00
Klaus Kämpf
94fb7629f4
Apply patch 3530444
...
Class#methods and Class#constants returns array of symbols
from Ruby 1.9 on
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13970 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-12-15 16:16:40 +00:00
Klaus Kämpf
eab417a3a1
Ruby 1.9: Add current dir to load path when running Ruby
...
Ruby 1.9 changes the default load path to _not_ include the current
directory. This breaks running the test cases.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13965 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-12-14 14:07:32 +00:00
William S Fulton
50693941c6
Fix #3475492 - iterating through std::vector wrappers of enumerations.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12916 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-03-13 07:10:24 +00:00
William S Fulton
58e74e8675
Rename python_kwargs testcase to kwargs_feature. Add kwargs_feature to Ruby and fix Ruby warnings when using kwargs feature. Add %kwargs macro for Ruby
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12739 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-06-13 17:38:08 +00:00
William S Fulton
4308dd03cf
SWIG license change - The Examples and Lib move to a very permissive license in the LICENSE file, removing the BSD license restrictions as agreed by committers since it was inadvertently introduced. Remove some examples where the impact of the license change is not clear.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-27 23:26:02 +00:00
William S Fulton
9d6e826bd8
Test std::map in all languages
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11658 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-20 23:21:07 +00:00
William S Fulton
55170f0f88
Add Ruby missing methods for vector<bool> specialization
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11576 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-15 00:17:21 +00:00
Olly Betts
84215444eb
Rename max() to maximum() as max() is a built-in function in PHP.
...
Testcases overload_template and overload_template_fast now pass for PHP.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11557 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 01:33:23 +00:00
Miklos Vajna
451f71d7b1
remove unnecessary extra semicolons in the tesuite
...
Basically just style cleanup, "fi;" or "fi; \" -> "fi".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11523 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-09 22:52:08 +00:00
William S Fulton
56c5b52c1d
remove unnecessary extra shells being spawned in the test-suite
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11522 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-09 22:39:51 +00:00
William S Fulton
9064b08651
better way to provide custom commandline options for individual tests
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11356 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-03 22:23:43 +00:00
Olly Betts
45611ebd57
[Ruby] Fix to handle FIXNUM values greater than MAXINT passed for a double parameter.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11320 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-26 01:49:33 +00:00
William S Fulton
30335a0198
std::map improvements based on patch from Yuval Baror
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11230 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-22 06:10:52 +00:00
William S Fulton
267ffd6ce6
move std::multimap tests from li_std_map.i into new li_std_multimap.i
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11210 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-12 17:24:01 +00:00
William S Fulton
db83e51441
modify test-suite (barring python atm) to not rely on the -I path to find the input .i file - removes the new warning 125 and sets up the test-suite for testing with ccache. This change required the use of -outcurrentdir and moving the .i files from the language subdirectories to the directory above along with some .i file name changes.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10949 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-26 21:35:15 +00:00
William S Fulton
f8ae12fe4d
variable name changes to remove php keywords
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10575 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-24 20:11:46 +00:00
William S Fulton
f06222b993
Add partialcheck make targets. Also add RUNTOOL, COMPILETOOL and SWIGTOOL variables for invoking tools when running tests, compiling or invoking swig
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10482 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-20 21:27:22 +00:00
William S Fulton
575efcdd53
Fix using statements for overloaded methods
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10176 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-30 22:34:50 +00:00
William S Fulton
f1169562ec
string handling mods to keep gcc-4.2 happy
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10089 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-04 20:36:23 +00:00
William S Fulton
ede8b8c87a
Remove cvs $Header$
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10007 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-17 21:56:11 +00:00
William S Fulton
f4b9fd381d
correct module to use
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9932 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-04 22:42:07 +00:00
Gonzalo Garramuno
dec7109eb5
Added missing stl_new.i test
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9930 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-04 06:37:18 +00:00
Gonzalo Garramuno
1cf26ad65d
Added new li_math.i test.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9929 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-04 06:36:21 +00:00
Gonzalo Garramuno
8682f0cbaf
Added some more tests for c file wraps.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9928 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-04 06:33:08 +00:00
Gonzalo Garramuno
172b377bbe
Added new arrays_runme.rb tests
...
Added more tests for enums_runme.rb.
Both showcase current swig problems.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9926 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-04 06:07:33 +00:00
William S Fulton
f1e5b5edff
Move ruby specific test into Ruby specific testcase li_std_pair_lang_object.i
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9923 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-03 19:45:14 +00:00
William S Fulton
f5bdd056f7
Remove obscure mpointer example and replace with member_pointer.i testcase and runtime examples
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-09 23:47:13 +00:00
William S Fulton
e4bade15f3
fixes to use parallel make when running the examples and test-suite
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9875 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-07-24 21:26:54 +00:00
Gonzalo Garramuno
d53ef0a8c4
Added automatic calculation of O(n).
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9833 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-23 13:36:10 +00:00
Gonzalo Garramuno
b2356f4ef6
Improved printing in test.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9832 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-23 12:53:45 +00:00
Gonzalo Garramuno
1d35a3bb0e
Updated li_std_speed.i to also test speed of
...
container with an actual class (float).
Simplified insert() function.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9831 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-23 12:49:41 +00:00
Gonzalo Garramuno
597f650d02
Added new speed test and minor cosmetic fixes to
...
other older tests.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9826 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-19 09:49:19 +00:00
Gonzalo Garramuno
6fbc5e58a6
Removed printing from test.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9791 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-08 10:13:20 +00:00
Gonzalo Garramuno
8742036cbd
Removed macro stuff titles of author, copyright,
...
etc.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9785 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-06 18:02:24 +00:00
Gonzalo Garramuno
8622de7595
Removed allocator from constructors.
...
Added copy constructors to stack/queue.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9780 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-06 05:54:48 +00:00
Gonzalo Garramuno
a7aa62ce68
Added an implementation of std_queue with tests.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9779 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-06 05:25:58 +00:00
Gonzalo Garramuno
5e27a6828a
Added an implementation of std_stack.i with
...
proper tests.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9778 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-06 05:13:17 +00:00
Gonzalo Garramuno
0f15d298da
Modified ruby functors to remove ruby prefix.
...
Added new test for functors.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9776 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-06 04:08:55 +00:00
Gonzalo Garramuno
f92ebdbe07
remove std::set from new extended functions, as
...
it was failing due to non-assignable iterator.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9774 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-05 11:19:54 +00:00
Gonzalo Garramuno
c361c83aea
Removed a printing of vector from test.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9772 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-05 03:00:35 +00:00
Gonzalo Garramuno
81c84b7e8c
Rename fixes to STL.
...
Removed object reporting in non-verbose from
newobject demos.
Made wstring treat them as normal strings as
advertised.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9771 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-05 00:46:20 +00:00
Gonzalo Garramuno
4cd98d3865
Improved algorithm of renaming of methods with numbers at the end.
...
Fixed some const issues.
Improved report on overloaded function error.
Fixed some minor iterator potential problems.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9770 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-04 13:12:31 +00:00
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