summaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/enum_test.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix string used in tp_name on inner types.Hugo Parente Lima2011-02-111-1/+1
| | | | | Reviewer: Lauro Moura <lauro.neto@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Created unit test for enum.__repr__ function.Renato Araujo Oliveira Filho2011-01-281-0/+10
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Shiboken enums now have a tp_print representation.Marcelo Lira2011-01-211-0/+14
| | | | | | | | | | This fixes the bug #611[1], and an unit test was also added. [1] http://bugs.openbossa.org/show_bug.cgi?id=611 Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added tests for anonymous global and class bound enums.Marcelo Lira2010-09-201-0/+11
|
* chmod -x on all tests.Hugo Parente Lima2010-06-161-0/+0
| | | | We can't run they standalone anyway, because they need some env vars to be exported like PYTHONPATH.
* Added test function with an integer argument that have an enum as default value.Marcelo Lira2010-06-151-0/+6
|
* Adding test for #212 - Overloads with enumsLauro Neto2010-04-301-1/+13
|
* Adding default value for enum/flag constructorLauro Neto2010-02-231-0/+5
|
* 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>
* All enums are now extensible to match the C++ casting behaviour.Marcelo Lira2010-02-201-4/+11
| | | | | | | | | | | | | | | Now the user can build new values of a particular enum type passing an integer to its constructor. Thus, the following C++ code: MyEnum val = (MyEnum) 1; is the equivalent of this Python code: val = MyEnum(1) The enum unit tests were also updated. Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Removed all undue usage of lambda with assertRaises on unit tests.Marcelo Lira2009-12-011-2/+2
| | | | Reviewed by Lauro Neto <lauro.neto@openbossa.org>
* removed extensible enum tests since they do not make senseMarcelo Lira2009-11-051-13/+5
|
* Fix LGPL license plates to libsample unit tests, so the tests can be ↵Hugo Lima2009-09-081-26/+24
| | | | executed again.
* added LGPL license plates to libsample unit testsMarcelo Lira2009-09-031-0/+26
|
* The End Is the Beginning Is the EndMarcelo Lira2009-08-171-0/+36