summaryrefslogtreecommitdiffstats
path: root/src/test/CppTests/Parameters.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/CppTests/Parameters.test.ts')
-rw-r--r--src/test/CppTests/Parameters.test.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/CppTests/Parameters.test.ts b/src/test/CppTests/Parameters.test.ts
index 9487fe9..9c99100 100644
--- a/src/test/CppTests/Parameters.test.ts
+++ b/src/test/CppTests/Parameters.test.ts
@@ -65,6 +65,11 @@ suite("C++ - Parameters Tests", () => {
assert.equal("/**\n * @brief \n * \n * @param mat \n */", result);
});
+ test("Enum parameter", () => {
+ const result = testSetup.SetLine("void foo(enum foo bar);").GetResult();
+ assert.equal("/**\n * @brief \n * \n * @param bar \n */", result);
+ });
+
test("Const parameter with const pointer to const pointer", () => {
let result = testSetup.SetLine("void foo(const int * const * const a1);").GetResult();
assert.equal("/**\n * @brief \n * \n * @param a1 \n */", result);