diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-24 15:00:11 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-24 15:20:30 -0300 |
commit | 5c8637fd719e9dfd0415173128d0d8ea916b7d9b (patch) | |
tree | 6936d28579d1761a2dde4954734e7f6542547bb2 /tests/testaddfunction.h | |
parent | 139e84644ea0088e16678e8b8c17b9e5b4fd6269 (diff) |
Modified the AbstractMetaFunction class to have a separated flag to
indicate that it was added by the user or not, instead of using the
AbstractMetaFunction::UserAddedFunction enum value. The old way
prevented the function to be an UserAddedFunction and a
ConstructorFunction at the same time, since this information was
stored as an enum of the AbstractMetaFunction::FunctionType type.
A test case was also added.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'tests/testaddfunction.h')
-rw-r--r-- | tests/testaddfunction.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testaddfunction.h b/tests/testaddfunction.h index a8082a4b5..5600da7dc 100644 --- a/tests/testaddfunction.h +++ b/tests/testaddfunction.h @@ -31,9 +31,10 @@ class TestAddFunction : public QObject private slots: void testParsingFuncNameAndConstness(); void testAddFunction(); + void testAddFunctionConstructor(); void testAddFunctionTagDefaultValues(); void testAddFunctionCodeSnippets(); void testFunctionWithoutParenteses(); }; -#endif
\ No newline at end of file +#endif |