diff options
| author | Christoph Schlosser <christoph@linux.com> | 2019-10-08 19:13:55 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christophschlosser@users.noreply.github.com> | 2019-10-08 22:04:49 +0200 |
| commit | 3c16da1b09b4a7490e2139d1ee3b96e4ed096806 (patch) | |
| tree | 2f50f52c12628a6c6278c58eaa7b5635d79922cf /src/test/CppTests | |
| parent | d009b9190ed48e3a3787b58e02915f5ec195c84b (diff) | |
| download | doxdocgen-3c16da1b09b4a7490e2139d1ee3b96e4ed096806.tar.gz | |
End of declaration problem fixed
If the terminating character is the first one on the next line
it can cause the buffer to fill and thus produce malformed
text to parse.
Diffstat (limited to 'src/test/CppTests')
| -rw-r--r-- | src/test/CppTests/Attributes.test.ts | 5 |
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); + }); }); |