summaryrefslogtreecommitdiffstats
path: root/src/test/CppTests/Attributes.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/CppTests/Attributes.test.ts')
-rw-r--r--src/test/CppTests/Attributes.test.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/CppTests/Attributes.test.ts b/src/test/CppTests/Attributes.test.ts
index bfeaef1..a6641e1 100644
--- a/src/test/CppTests/Attributes.test.ts
+++ b/src/test/CppTests/Attributes.test.ts
@@ -59,4 +59,9 @@ suite("C++ - Attributes Tests", () => {
const result = testSetup.SetLine("constexpr int foo(int a, double& b) throw(std::except);").GetResult();
assert.equal("/**\n * @brief \n * \n * @param a \n * @param b \n * @return constexpr int \n */", result);
});
+
+ test("Newline in function", () => {
+ const result = testSetup.SetLines(["static void ResetActionState( BOOL sendNAK )", "{"]).GetResult();
+ assert.equal("/**\n * @brief \n * \n * @param sendNAK \n */", result);
+ });
});