summaryrefslogtreecommitdiffstats
path: root/src/test/CppTests/Con-AndDestructor.test.ts
diff options
context:
space:
mode:
authorto-s <tobias.weber@enisyst.de>2020-10-19 11:43:47 -0400
committerGitHub <noreply@github.com>2020-10-19 17:43:47 +0200
commitd629202dd9419569c109475ad9f10405d8ab0d22 (patch)
treeb496c943718ac65ff7676536f5643c92bb9590ab /src/test/CppTests/Con-AndDestructor.test.ts
parent0750262ca203baf9b8974d683df68f99a7b1c259 (diff)
downloaddoxdocgen-d629202dd9419569c109475ad9f10405d8ab0d22.tar.gz
Replaced assert.equal() calls by assert.strictEqual() calls (#188)
Due to message: deprecated since v9.9.0 - use strictEqual() instead.
Diffstat (limited to 'src/test/CppTests/Con-AndDestructor.test.ts')
-rw-r--r--src/test/CppTests/Con-AndDestructor.test.ts18
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 ba60501..44cb5a6 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.equal("/**\n * @brief \n * \n * @param a \n */", result);
+ assert.strictEqual("/**\n * @brief \n * \n * @param a \n */", result);
});
test("Constructor with initializer list", () => {
const result = testSetup.SetLine("Foo(int a) : m_a(a) {").GetResult();
- assert.equal("/**\n * @brief \n * \n * @param a \n */", result);
+ assert.strictEqual("/**\n * @brief \n * \n * @param a \n */", result);
});
test("Explicit Constructor", () => {
const result = testSetup.SetLine("explicit Foo(int a);").GetResult();
- assert.equal("/**\n * @brief \n * \n * @param a \n */", result);
+ assert.strictEqual("/**\n * @brief \n * \n * @param a \n */", result);
});
test("Deleted Constructor", () => {
const result = testSetup.SetLine("Foo(int a) = delete;").GetResult();
- assert.equal("/**\n * @brief \n * \n * @param a \n */", result);
+ assert.strictEqual("/**\n * @brief \n * \n * @param a \n */", result);
});
test("Default Constructor", () => {
const result = testSetup.SetLine("Foo() = default;").GetResult();
- assert.equal("/**\n * @brief \n * \n */", result);
+ assert.strictEqual("/**\n * @brief \n * \n */", result);
});
test("Destructor", () => {
const result = testSetup.SetLine("~Foo();").GetResult();
- assert.equal("/**\n * @brief \n * \n */", result);
+ assert.strictEqual("/**\n * @brief \n * \n */", result);
});
test("Virtual Destructor", () => {
const result = testSetup.SetLine("virtual ~Foo();").GetResult();
- assert.equal("/**\n * @brief \n * \n */", result);
+ assert.strictEqual("/**\n * @brief \n * \n */", result);
});
test("Deleted Destructor", () => {
const result = testSetup.SetLine("virtual ~Foo() = 0;").GetResult();
- assert.equal("/**\n * @brief \n * \n */", result);
+ assert.strictEqual("/**\n * @brief \n * \n */", result);
});
test("Default Destructor", () => {
const result = testSetup.SetLine("~Foo() = default;").GetResult();
- assert.equal("/**\n * @brief \n * \n */", result);
+ assert.strictEqual("/**\n * @brief \n * \n */", result);
});
});