From ddd24fe12bfb3557f422c1c8dc1d5464d2961c34 Mon Sep 17 00:00:00 2001 From: to-s Date: Sat, 8 May 2021 00:47:21 +0200 Subject: Reordered assertion parameter in tests Due to https://github.com/cschlosser/doxdocgen/issues/218 --- src/test/CppTests/Con-AndDestructor.test.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/test/CppTests/Con-AndDestructor.test.ts') 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 */"); }); }); -- cgit v1.2.3