summaryrefslogtreecommitdiff
path: root/Examples
Commit message (Collapse)AuthorAgeFilesLines
* Lua example fix for newer osxWilliam S Fulton2021-02-201-0/+2
|
* Fix typos in attribute2ref() in Lib/typemaps/attribute.swgZackery Spytz2021-02-092-0/+6
| | | | | | AccessorName was being used instead of AttributeName. Closes #1872.
* testname typo fixWilliam S Fulton2020-10-101-1/+1
|
* complex can now be used as an identifierWilliam S Fulton2020-10-103-0/+21
| | | | | | Remove final vestiges of 'complex' keyword. Closes #252
* Quieten ccomplextestWilliam S Fulton2020-10-101-2/+0
|
* Add missing clean targetsWilliam S Fulton2020-10-105-9/+17
| | | | | template_typedef_cplx2 files are generated by the template_typedef_import.multicpptest but can also be cleaned by the template_typedef_cplx2.cpptest target.
* Further ccomplextest hacksWilliam S Fulton2020-10-101-1/+3
| | | | For visual c++ compilation when using creal and cimag.
* Split C complex.h from C++ complex testingWilliam S Fulton2020-10-107-98/+117
|
* Remove Remove runtime test for unsupported complex or _Complex by itselfWilliam S Fulton2020-10-101-8/+0
|
* Merge commit '8245277ad3acd9308ce28c40508b999e9496b27e' into c99-complexWilliam S Fulton2020-10-103-12/+67
|\ | | | | | | | | | | | | | | | | | | | | | | * commit '8245277ad3acd9308ce28c40508b999e9496b27e': Remove test for unsupported complex or _Complex by itself More C99 complex fixes, plus Python tests Restore _Complex as standalone type Small corrections for handling C99 _Complex Properly handle C99 complex types even in C++ mode Conflicts: Examples/test-suite/python/complextest_runme.py
| * Remove test for unsupported complex or _Complex by itselfLeo Singer2020-06-242-20/+0
| |
| * More C99 complex fixes, plus Python testsLeo Singer2020-06-243-12/+79
| |
| * Small corrections for handling C99 _ComplexLeo Singer2020-06-241-3/+3
| |
* | Update python_pybuffer_runme.py syntax for working under both python 2 and 3William S Fulton2020-10-071-8/+8
| |
* | Merge branch 'PyBuffer_Release-pybuffer'William S Fulton2020-10-071-0/+24
|\ \ | | | | | | | | | | | | | | | * PyBuffer_Release-pybuffer: Add tests. Fix the error handling for the PyObject_GetBuffer() calls in pybuffer.i
| * | Add tests.Zackery Spytz2020-06-151-0/+24
| | |
* | | Merge branch 'director-return-const-pointer'William S Fulton2020-10-072-2/+16
|\ \ \ | | | | | | | | | | | | | | | | | | | | * director-return-const-pointer: Put test in alphabetical order Perform proper spacing in director method declarations
| * | | Put test in alphabetical orderWilliam S Fulton2020-10-071-1/+1
| | | |
| * | | Perform proper spacing in director method declarationsThomas Reitmayr2020-06-202-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If a director method returns a const pointer, eg. 'int *const', then in its method declaration a space has to be inserted between 'const' and the method name. This fixes swig#1810.
* | | | Add missing virtual destructor to testcaseWilliam S Fulton2020-09-281-0/+1
| | | |
* | | | Add access modifier support for interface featureWilliam S Fulton2020-09-251-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add ability to change the modifiers for the C# and Java interface generated when using the %interface macros. For C# use the 'csinterfacemodifiers' typemap. For Java use the 'javainterfacemodifiers' typemap. For example: %typemap(csinterfacemodifiers) X "internal interface" Closes #1874
* | | | Add Ruby test for wchar_t members in li_std_string testcaseWilliam S Fulton2020-09-241-0/+7
| | | |
* | | | Extend C# wchar_t member test to pass unicode stringsGareth Francis2020-09-121-0/+7
| | | |
* | | | Add test for wchar_t members to li_std_string.iGareth Francis2020-09-123-0/+18
| | | |
* | | | Octave: error() must be called with an argumentKarl Wette2020-08-2777-308/+308
| | | |
* | | | Python 3.2 syntax error fixes in testsWilliam S Fulton2020-08-152-18/+24
| | | |
* | | | Revert 2to3 modificationWilliam S Fulton2020-08-151-1/+1
| | | | | | | | | | | | | | | | Use sys.maxint still for Python 2
* | | | Merge branch 'remove-dependency-on-2to3'William S Fulton2020-08-15145-1403/+1189
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove-dependency-on-2to3: Remove need for Python 2to3 Modify examples to be both Python 2 and 3 compatible Remove python3 specific runme3.py test files Convert python tests using 2to3 Convert python test scripts to be Python 2 and 3 compatible Convert swigobject python test to be python 2 and 3 compatible Convert two tests to work with both Python 2 and 3 Improve director_exception Python test Remove further print statements from Python tests Improve Python testing catching exceptions Improve contract Python testcase testing Remove print statements from Python tests
| * | | | Remove need for Python 2to3William S Fulton2020-08-153-94/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All Python examples and tests have been written to be both Python 2 and Python 3 compatible, removing the need for 2to3 to run the examples or test-suite. The 2to3 executable is not always available and even when available does not always work, e.g. with pyenv. An alternative would be to use the lib2to3 Python module instead, but this isn't available in some older versions of Python 3. I had this problem on Ubuntu Bionic on Travis: checking Examples/python/callback pyenv: 2to3-3.8: command not found The `2to3-3.8' command exists in these Python versions: 3.8 3.8.1 Reference issues: https://github.com/pypa/virtualenv/issues/1399 https://travis-ci.community/t/2to3-command-not-found-in-venv-in-bionic/4495
| * | | | Modify examples to be both Python 2 and 3 compatibleWilliam S Fulton2020-08-1537-388/+368
| | | | | | | | | | | | | | | | | | | | For removing dependency on 2to3
| * | | | Remove python3 specific runme3.py test filesWilliam S Fulton2020-08-151-0/+0
| | | | | | | | | | | | | | | | | | | | This file can be run using Python 2, the test is just ignored
| * | | | Convert python tests using 2to3William S Fulton2020-08-1566-551/+551
| | | | | | | | | | | | | | | | | | | | | | | | | These tests were converted using 2to3 and should be valid using Python 2.7 and Python 3+.
| * | | | Convert python test scripts to be Python 2 and 3 compatibleWilliam S Fulton2020-08-156-30/+28
| | | | | | | | | | | | | | | | | | | | Unicode testing
| * | | | Convert swigobject python test to be python 2 and 3 compatibleWilliam S Fulton2020-08-141-4/+13
| | | | |
| * | | | Convert two tests to work with both Python 2 and 3William S Fulton2020-08-132-8/+21
| | | | | | | | | | | | | | | | | | | | Now these two tests work without having to use 2to3
| * | | | Improve director_exception Python testWilliam S Fulton2020-08-131-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | Add code to handle missed exceptons. Remove print statement.
| * | | | Remove further print statements from Python testsWilliam S Fulton2020-08-132-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | Use exceptions instead of printing to stdout. Part of an effort to convert Python tests to python 3 syntax.
| * | | | Improve Python testing catching exceptionsWilliam S Fulton2020-08-133-35/+35
| | | | | | | | | | | | | | | | | | | | Catch expected exceptions only
| * | | | Improve contract Python testcase testingWilliam S Fulton2020-08-131-23/+23
| | | | | | | | | | | | | | | | | | | | Catch expected exceptions only - fix bug in test
| * | | | Remove print statements from Python testsWilliam S Fulton2020-08-1340-254/+123
| | | | | | | | | | | | | | | | | | | | | | | | | Use exceptions instead of printing to stdout. Part of an effort to convert Python tests to python 3 syntax.
* | | | | Add missing test to python test-suiteWilliam S Fulton2020-08-151-0/+1
| | | | |
* | | | | Remove Examples/contractWilliam S Fulton2020-08-1510-293/+0
|/ / / / | | | | | | | | | | | | | | | | This set of examples was never tested/documented There is an equivalent testcase in Examples/test-suite/contract.i
* | | | Alphabetise testing of examplesWilliam S Fulton2020-08-134-8/+7
| | | |
* | | | Add C# support for void *VOID_INT_PTR member variablesWilliam S Fulton2020-08-132-0/+10
| | | | | | | | | | | | | | | | Issue reported by Carlos Frederico Biscaya on swig-user mailing list.
* | | | Add basic std::pair Python testingWilliam S Fulton2020-08-131-0/+47
| |_|/ |/| | | | | | | | Based on Ruby's li_std_pair_runme.rb
* | | Merge branch 'directors-comparison-operators'William S Fulton2020-06-144-0/+36
|\ \ \ | |/ / |/| | | | | | | | | | | * directors-comparison-operators: Use %rename Fix wrapping of virtual comparison operators with directors
| * | Use %renameZackery Spytz2020-06-072-0/+8
| | |
| * | Fix wrapping of virtual comparison operators with directorsZackery Spytz2020-06-053-0/+28
| | | | | | | | | | | | Closes #1642.
* | | Ruby testcase fixWilliam S Fulton2020-06-071-0/+2
| |/ |/| | | | | | | | | | | | | Reportedly failing. Failure can be replicated with 2.5.1 by increasing number of loops. Workaround is to disable GC. Closes #1646
* | Merge branch 'python-doxygen-quotes'William S Fulton2020-06-073-0/+24
|\ \ | |/ |/| | | | | | | * python-doxygen-quotes: Fix generated Python code for Doxygen comments with triple quotes Fix generated Python code for Doxygen comments ending with quote