aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Added tests for user added functions declared inside namespaces.Hugo Parente Lima2010-04-302-0/+9
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Renato Araújo <renato.araujo@openbossa.org>
* Adding test for #212 - Overloads with enumsLauro Neto2010-04-303-1/+23
|
* Merge remote branch 'luck/fixprivctor'Luciano Wolf2010-04-235-0/+143
|\
| * Support to "only private constructor available" case.Luciano Wolf2010-04-215-0/+143
| |
* | Use qualified class name when callign a method like self->ClassName::method().Hugo Parente Lima2010-04-223-1/+13
| | | | | | | | This fix some problems compiling bindings for classes under C++ namespaces.
* | Added support for enums inside classes inside namespaces.Hugo Parente Lima2010-04-223-0/+6
| |
* | Add test for classes and inner classes inside namespaces.Hugo Parente Lima2010-04-225-2/+58
| |
* | Add declaration of global functions on sample typesystem.Hugo Parente Lima2010-04-221-3/+24
| |
* | Fixed argument policy propagate.Renato Filho2010-04-223-2/+14
|/ | | | | Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Unit test for multiple derived classes.Renato Filho2010-04-121-2/+26
|
* Remove warnings about "deprecated conversion from string constant to 'char*'".Hugo Parente Lima2010-04-121-1/+1
| | | | | | | | These warnings are due to the Python C API using a char* as parameter when it should const char*. Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
* Better error messages when reimplementing virtual methods.Hugo Parente Lima2010-04-082-1/+15
|
* Add another test case to multi_cpp_test.pyHugo Parente Lima2010-04-081-0/+30
|
* Adding test for mixed Python/C++ mult. inheritanceLauro Neto2010-04-081-0/+71
| | | | | Reviewer: Bruno Araujo <bruno.araujo@openbossa.org> Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org>
* Adding multiple inheritance + virtual method testLauro Neto2010-04-081-0/+83
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org>
* Added unit test for crash with references, None types and comparison functions.Hugo Parente Lima2010-04-051-1/+6
|
* Do not segfault when a null pointer is passed to Str constructor.Hugo Parente Lima2010-04-051-1/+2
|
* libsample's Point extended with a reverse operator defined in libother.Marcelo Lira2010-03-313-1/+72
| | | | | | | | | | The libother's Number class now defines a multiply reverse operator with libsample's Point class. Tests were added to check if the generated binding correctly calls Number.__rmul__ method with Point as argument. Reviewed by Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Extended extended reverse shift operator test.Marcelo Lira2010-03-311-3/+9
| | | | Just added the basic case of "Collector << ObjectType".
* Added some simple tests about multiple inheritance from two C++ objects.Hugo Lima2010-03-301-0/+70
|
* Adds test case for libsample's Size class copy constructor.Marcelo Lira2010-03-262-7/+14
| | | | Also fixes samplebinding type system indentation.
* Fixes Converter<void*>::toPython method.Marcelo Lira2010-03-231-0/+6
| | | | | | | | The void* converter transforms a C++ NULL pointer in a Python None. An unit test for this case was added as well. Reviewed by Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewed by Bruno Araújo <bruno.araujo@openbossa.org>
* Adds tests to type system modifications regarding reference to pointer type.Marcelo Lira2010-03-224-0/+153
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Adding greedy method to CollectorLauro Neto2010-03-224-2/+28
| | | | | This method will somehow conflict with the external operator in libother OtherObjectType
* Adding OtherObjectType to libotherLauro Neto2010-03-227-0/+148
| | | | Used in external reverse operators defined in other modules.
* Adds a test for a method with modifications and custom conversion rules.Marcelo Lira2010-03-193-1/+28
| | | | | | | | | | | | | The test function does nothing in fact, it is there just to cause a situation that could cause a compilation problem if the generator is not working as it should. In other words if it compiles, then it is ok. :) The added method was a dummy clone of a similar QPixmap.loadFromData method signature that prevented QtGui from compiling properly. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Anderson Lizardo <anderson.lizardo@openbossa.org>
* Added a unit test to check the object-type hashability.Hugo Lima2010-03-191-1/+7
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Bruno Araújo <bruno.araujo@openbossa.org>
* Allow hash-function tag to be definied in object-types (Fix bug #186).Hugo Lima2010-03-193-1/+8
|
* Write enum checks before int, long and bool checks.Hugo Lima2010-03-181-2/+5
| | | | | | Enums are implicitly converted to these types in C++, if we dont do that the enum version of some functions can never be called, because the int one will be if the int check was written before the enum check.
* Renamed templates used for conversions of containers.Hugo Lima2010-03-183-3/+3
|
* Changed the semantic of Converter<T>::isConvertible method.Hugo Lima2010-03-182-6/+15
| | | | | | | | | The new semantic is: Returns true when the type can be converted to T OR the type is T. The old semantic was: Returns true when the type can be converted to T and false if the type is T, however int and float converters did not follow this rule, because they used PyNumber_Check on their isConvertible implementation.
* Added test for conversion of lists with invalid contents.Hugo Lima2010-03-181-0/+5
|
* added support for pure virtual methods returning void ptrsMatti Airas2010-03-176-0/+27
| | | | | | | the return statements now have correct values for pure virtual methods returning void pointers. also added a dummy test for this (can't really test it properly until the semantics of casting the python return value into a void pointer is properly defined -- if ever).
* fixed a typo in the test class nameMatti Airas2010-03-171-2/+2
|
* Merge branch 'master' into extensibleconversionsMarcelo Lira2010-03-046-2/+23
|\ | | | | | | | | | | | | | | | | Conflicts: cppgenerator.cpp libshiboken/basewrapper.cpp Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
| * Merge remote branch 'hugopl/typediscovery2'Hugo Lima2010-03-036-2/+23
| |\ | | | | | | | | | | | | Conflicts: libshiboken/conversions.h
| | * Turn Number::m_value private to not cause problem when compiling with "avoid ↵Hugo Lima2010-03-021-1/+1
| | | | | | | | | | | | protected hack" on.
| | * Use polymorphic-id-expression to discover the correct type of a C++ object.Hugo Lima2010-03-023-1/+8
| | |
| | * Add test for bug on the current type discovery algorithm.Hugo Lima2010-03-023-0/+14
| | |
* | | Adds tests for a class without implicit conversions being extended in ↵Marcelo Lira2010-03-029-0/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | another module. One value type class, called NoImplicitConversion, without implicit conversions of any kind is declared in the first library, libsample. In the other library, libother, ExtendsNoImplicitConversion defines a conversion operator to turn itself into a NoImplicitConversion class. The unit tests tries to pass an ExtendsNoImplicitConversion object where a NoImplicitConversion is expected.
* | | Generator now writes code to support extended conversions.Marcelo Lira2010-03-021-1/+1
|/ / | | | | | | Removed "new_ctor_operator" test from black list.
* / Refactored and documented base Converters.Marcelo Lira2010-03-022-4/+4
|/ | | | | | | | | | | | To improve legibility and understanding ConverterBase<T> was renamed to ValueTypeConverter<T>, and ConverterBase<T*> specialization is now an independent base converter ObjectTypeConverter<T>. Converter_CppEnum was renamed to EnumConverter. The HeaderGenerator and custom converters for the test bindings were updated accordingly. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Adds unit test for implicit conversion defined by a conversion operator.Marcelo Lira2010-03-013-0/+59
| | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Shiboken generator now supports references to pointers as arguments.Marcelo Lira2010-02-261-0/+3
| | | | | | | Two methods with references to object type and value type pointers were added to BlackBox test class just to check the compilation. Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Added test for use of ObjectCopier of a type declared in other module.Hugo Lima2010-02-261-0/+3
| | | | This should create undefinied symbols on other module if it fails.
* Fix bug#142.Hugo Lima2010-02-244-0/+50
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org> and Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed support for innerclass.Renato Filho2010-02-241-0/+38
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Adding default value for enum/flag constructorLauro Neto2010-02-231-0/+5
|
* Add hash function for Str and proper unit test.Hugo Lima2010-02-234-1/+56
|
* The C++-like enum values are now registered inside the related enums.Marcelo Lira2010-02-231-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | Originally the values of an enum were registered in the scope that enclosed the enum declaration, just like C++ does, now in addition to this the values are registered inside the enum type. To exemplify, the following C++ enum: Scope { enum Foo { Value }; }; can be accessed in Python as this: Scope.Value as well as this: Scope.Foo.Value The enum unit tests were expanded to check for this new behaviour. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>