diff options
| author | to-s <to-s@users.noreply.github.com> | 2021-05-08 00:47:21 +0200 |
|---|---|---|
| committer | Christoph Schlosser <2466365+cschlosser@users.noreply.github.com> | 2021-05-08 21:01:49 +0200 |
| commit | ddd24fe12bfb3557f422c1c8dc1d5464d2961c34 (patch) | |
| tree | abd59e9b0f80fac1b828926d1194ea7cff364e21 /src/test/CppTests/Con-AndDestructor.test.ts | |
| parent | 54aaa131a116ac63f918b222ca46faeb61efd1e9 (diff) | |
| download | doxdocgen-ddd24fe12bfb3557f422c1c8dc1d5464d2961c34.tar.gz | |
Reordered assertion parameter in tests
Due to https://github.com/cschlosser/doxdocgen/issues/218
Diffstat (limited to 'src/test/CppTests/Con-AndDestructor.test.ts')
| -rw-r--r-- | src/test/CppTests/Con-AndDestructor.test.ts | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/test/CppTests/Con-AndDestructor.test.ts b/src/test/CppTests/Con-AndDestructor.test.ts index 44cb5a6..62d16b4 100644 --- a/src/test/CppTests/Con-AndDestructor.test.ts +++ b/src/test/CppTests/Con-AndDestructor.test.ts @@ -20,46 +20,46 @@ suite("C++ - Con- and Destructor Tests", () => { // Tests test("Normal Constructor", () => { const result = testSetup.SetLine("Foo(int a);").GetResult(); - assert.strictEqual("/**\n * @brief \n * \n * @param a \n */", result); + assert.strictEqual(result, "/**\n * @brief \n * \n * @param a \n */"); }); test("Constructor with initializer list", () => { const result = testSetup.SetLine("Foo(int a) : m_a(a) {").GetResult(); - assert.strictEqual("/**\n * @brief \n * \n * @param a \n */", result); + assert.strictEqual(result, "/**\n * @brief \n * \n * @param a \n */"); }); test("Explicit Constructor", () => { const result = testSetup.SetLine("explicit Foo(int a);").GetResult(); - assert.strictEqual("/**\n * @brief \n * \n * @param a \n */", result); + assert.strictEqual(result, "/**\n * @brief \n * \n * @param a \n */"); }); test("Deleted Constructor", () => { const result = testSetup.SetLine("Foo(int a) = delete;").GetResult(); - assert.strictEqual("/**\n * @brief \n * \n * @param a \n */", result); + assert.strictEqual(result, "/**\n * @brief \n * \n * @param a \n */"); }); test("Default Constructor", () => { const result = testSetup.SetLine("Foo() = default;").GetResult(); - assert.strictEqual("/**\n * @brief \n * \n */", result); + assert.strictEqual(result, "/**\n * @brief \n * \n */"); }); test("Destructor", () => { const result = testSetup.SetLine("~Foo();").GetResult(); - assert.strictEqual("/**\n * @brief \n * \n */", result); + assert.strictEqual(result, "/**\n * @brief \n * \n */"); }); test("Virtual Destructor", () => { const result = testSetup.SetLine("virtual ~Foo();").GetResult(); - assert.strictEqual("/**\n * @brief \n * \n */", result); + assert.strictEqual(result, "/**\n * @brief \n * \n */"); }); test("Deleted Destructor", () => { const result = testSetup.SetLine("virtual ~Foo() = 0;").GetResult(); - assert.strictEqual("/**\n * @brief \n * \n */", result); + assert.strictEqual(result, "/**\n * @brief \n * \n */"); }); test("Default Destructor", () => { const result = testSetup.SetLine("~Foo() = default;").GetResult(); - assert.strictEqual("/**\n * @brief \n * \n */", result); + assert.strictEqual(result, "/**\n * @brief \n * \n */"); }); }); |