diff options
| author | Christoph Schlosser <christoph@linux.com> | 2018-02-24 23:29:59 +0100 |
|---|---|---|
| committer | Christoph Schlosser <christophschlosser@users.noreply.github.com> | 2018-02-25 01:58:38 +0100 |
| commit | 041439c5544ca8f9627a922e125dbf7e7ad11769 (patch) | |
| tree | 9e3047bd1a3f40d1e2de02e5a736c26ad3980e68 /src/test/CppTests/Config.test.ts | |
| parent | f928a1049c6582e2fbb044676c5bbca89d9b7e33 (diff) | |
| download | doxdocgen-041439c5544ca8f9627a922e125dbf7e7ad11769.tar.gz | |
Add options and allow change of option order
Diffstat (limited to 'src/test/CppTests/Config.test.ts')
| -rw-r--r-- | src/test/CppTests/Config.test.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/CppTests/Config.test.ts b/src/test/CppTests/Config.test.ts index 8a8e939..0459dcb 100644 --- a/src/test/CppTests/Config.test.ts +++ b/src/test/CppTests/Config.test.ts @@ -83,12 +83,13 @@ suite("C++ - Configuration Tests", () => { test("Lines to get test", () => { testSetup.cfg = new Config(); - testSetup.cfg.linesToGet = 1; - const negativeResult = testSetup.SetLines(["template<typename T> bool \n", "foo(T a);"]).GetResult(); - assert.equal("/**\n * @brief \n * \n */", negativeResult); testSetup.cfg.linesToGet = 2; const positiveResult = testSetup.SetLines(["template<typename T> bool \n", "foo(T a);"]).GetResult(); assert.equal("/**\n * @brief \n * \n * @tparam T \n * @param a \n * " + "@return true \n * @return false \n */", positiveResult); + testSetup.cfg.linesToGet = 0; + testSetup.firstLine = 1; + const negativeResult = testSetup.SetLines(["template<typename T> bool \n", "foo(T a);"]).GetResult(); + assert.equal("/**\n * @brief \n * \n */", negativeResult); }); }); |