From d438622d71b94789b7ccc672cdd9d81f77570f87 Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Fri, 6 Jul 2018 19:49:02 +0200 Subject: Update unit tests Remove seperate file. Move into parameters test. Add new one to function pointers. --- src/test/CppTests/FunctionPointer.test.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/test/CppTests/FunctionPointer.test.ts') diff --git a/src/test/CppTests/FunctionPointer.test.ts b/src/test/CppTests/FunctionPointer.test.ts index a353380..7a4383c 100644 --- a/src/test/CppTests/FunctionPointer.test.ts +++ b/src/test/CppTests/FunctionPointer.test.ts @@ -39,4 +39,9 @@ suite("C++ - Function pointer Tests", () => { assert.equal("/**\n * @brief \n * \n * @param puts \n * @param str " + "\n * @return const struct foo(*)(const char*) \n */", result); }); + + test("Memberpointer in function pointer", () => { + const result = testSetup.SetLine("void foo(void (SomeClass::* func)());").GetResult(); + assert.equal("/**\n * @brief \n * \n * @param func \n */", result); + }); }); -- cgit v1.2.3