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/Preprocessor.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/test/CppTests/Preprocessor.test.ts') diff --git a/src/test/CppTests/Preprocessor.test.ts b/src/test/CppTests/Preprocessor.test.ts index eff1773..53bc4ef 100644 --- a/src/test/CppTests/Preprocessor.test.ts +++ b/src/test/CppTests/Preprocessor.test.ts @@ -18,7 +18,7 @@ suite("C++ - Preprocessor Tests", () => { // Tests test("Macro", () => { const result = testSetup.GetResult(); - assert.strictEqual("/**\n * @brief \n * \n */", result); + assert.strictEqual(result, "/**\n * @brief \n * \n */"); }); // Tests @@ -28,7 +28,7 @@ suite("C++ - Preprocessor Tests", () => { "/**", " */", ]).GetResult(); - assert.strictEqual("/**\n * @brief \n * \n */", result); + assert.strictEqual(result, "/**\n * @brief \n * \n */"); }); // These two tests don't seem to belong here but the behavior they're testing only is reproducable @@ -38,7 +38,7 @@ suite("C++ - Preprocessor Tests", () => { "*/", // simulate an auto generated closing block comment "void foo(int bar);", ]).GetResult(); - assert.strictEqual("/**\n * @brief \n * \n * @param bar \n */", result); + assert.strictEqual(result, "/**\n * @brief \n * \n * @param bar \n */"); }); test("don't detect closing */", () => { @@ -47,6 +47,6 @@ suite("C++ - Preprocessor Tests", () => { " */", "void foo(int bar);", ]).GetResult(); - assert.strictEqual("/**\n * @brief \n * \n */", result); + assert.strictEqual(result, "/**\n * @brief \n * \n */"); }); }); -- cgit v1.2.3