diff options
| author | to-s <tobias.weber@enisyst.de> | 2020-10-19 11:43:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-19 17:43:47 +0200 |
| commit | d629202dd9419569c109475ad9f10405d8ab0d22 (patch) | |
| tree | b496c943718ac65ff7676536f5643c92bb9590ab /src/test/CppTests/SmartText.test.ts | |
| parent | 0750262ca203baf9b8974d683df68f99a7b1c259 (diff) | |
| download | doxdocgen-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/SmartText.test.ts')
| -rw-r--r-- | src/test/CppTests/SmartText.test.ts | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/test/CppTests/SmartText.test.ts b/src/test/CppTests/SmartText.test.ts index bcfb6c8..b407500 100644 --- a/src/test/CppTests/SmartText.test.ts +++ b/src/test/CppTests/SmartText.test.ts @@ -19,97 +19,97 @@ suite("Smart Text Tests", () => { test("Disable smart text Ctor", () => { testSetup.cfg.Generic.generateSmartText = false; const result = testSetup.SetLine("Foo();").GetResult(); - assert.equal("/**\n * @brief \n * \n */", result); + assert.strictEqual("/**\n * @brief \n * \n */", result); }); test("Disable smart text Dtor", () => { testSetup.cfg.Generic.generateSmartText = false; const result = testSetup.SetLine("~Foo();").GetResult(); - assert.equal("/**\n * @brief \n * \n */", result); + assert.strictEqual("/**\n * @brief \n * \n */", result); }); test("Disable smart text getter", () => { testSetup.cfg.Generic.generateSmartText = false; const result = testSetup.SetLine("int getFoo();").GetResult(); - assert.equal("/**\n * @brief \n * \n * @return int \n */", result); + assert.strictEqual("/**\n * @brief \n * \n * @return int \n */", result); }); test("Disable smart text setter", () => { testSetup.cfg.Generic.generateSmartText = false; const result = testSetup.SetLine("void setFoo(int foo);").GetResult(); - assert.equal("/**\n * @brief \n * \n * @param foo \n */", result); + assert.strictEqual("/**\n * @brief \n * \n * @param foo \n */", result); }); test("Disable smart text factory method", () => { testSetup.cfg.Generic.generateSmartText = false; const result = testSetup.SetLine("int createFoo();").GetResult(); - assert.equal("/**\n * @brief \n * \n * @return int \n */", result); + assert.strictEqual("/**\n * @brief \n * \n * @return int \n */", result); }); test("Standard smart text Ctor", () => { testSetup.cfg.Generic.generateSmartText = true; const result = testSetup.SetLine("Foo();").GetResult(); - assert.equal("/**\n * @brief Construct a new Foo object\n * \n */", result); + assert.strictEqual("/**\n * @brief Construct a new Foo object\n * \n */", result); }); test("Standard smart text Dtor", () => { testSetup.cfg.Generic.generateSmartText = true; const result = testSetup.SetLine("~Foo();").GetResult(); - assert.equal("/**\n * @brief Destroy the Foo object\n * \n */", result); + assert.strictEqual("/**\n * @brief Destroy the Foo object\n * \n */", result); }); test("Standard smart text getter", () => { testSetup.cfg.Generic.generateSmartText = true; const result = testSetup.SetLine("int getFoo();").GetResult(); - assert.equal("/**\n * @brief Get the Foo object\n * \n * @return int \n */", result); + assert.strictEqual("/**\n * @brief Get the Foo object\n * \n * @return int \n */", result); }); test("Standard smart text setter", () => { testSetup.cfg.Generic.generateSmartText = true; const result = testSetup.SetLine("void setFoo(int foo);").GetResult(); - assert.equal("/**\n * @brief Set the Foo object\n * \n * @param foo \n */", result); + assert.strictEqual("/**\n * @brief Set the Foo object\n * \n * @param foo \n */", result); }); test("Standard smart text factory method", () => { testSetup.cfg.Generic.generateSmartText = true; const result = testSetup.SetLine("int createFoo();").GetResult(); - assert.equal("/**\n * @brief Create a Foo object\n * \n * @return int \n */", result); + assert.strictEqual("/**\n * @brief Create a Foo object\n * \n * @return int \n */", result); }); test("Casing text split: SCREAMING_SNAKE", () => { testSetup.cfg.Generic.generateSmartText = true; const result = testSetup.SetLine("int CREATE_FOO();").GetResult(); - assert.equal("/**\n * @brief Create a foo object\n * \n * @return int \n */", result); + assert.strictEqual("/**\n * @brief Create a foo object\n * \n * @return int \n */", result); }); test("Casing text split: snake_case", () => { testSetup.cfg.Generic.generateSmartText = true; const result = testSetup.SetLine("int create_foo();").GetResult(); - assert.equal("/**\n * @brief Create a foo object\n * \n * @return int \n */", result); + assert.strictEqual("/**\n * @brief Create a foo object\n * \n * @return int \n */", result); }); test("Casing text split: PascalCase", () => { testSetup.cfg.Generic.generateSmartText = true; const result = testSetup.SetLine("int CreateFoo();").GetResult(); - assert.equal("/**\n * @brief Create a Foo object\n * \n * @return int \n */", result); + assert.strictEqual("/**\n * @brief Create a Foo object\n * \n * @return int \n */", result); }); test("Casing text split: camelCase", () => { testSetup.cfg.Generic.generateSmartText = true; const result = testSetup.SetLine("int createFoo();").GetResult(); - assert.equal("/**\n * @brief Create a Foo object\n * \n * @return int \n */", result); + assert.strictEqual("/**\n * @brief Create a Foo object\n * \n * @return int \n */", result); }); test("Casing text split: UPPERCASE", () => { testSetup.cfg.Generic.generateSmartText = true; const result = testSetup.SetLine("int CREATEFOO();").GetResult(); - assert.equal("/**\n * @brief Create a FOO object\n * \n * @return int \n */", result); + assert.strictEqual("/**\n * @brief Create a FOO object\n * \n * @return int \n */", result); }); test("Casing text split: UnCertain_CASE", () => { testSetup.cfg.Generic.generateSmartText = true; const result = testSetup.SetLine("int Create_FOO();").GetResult(); - assert.equal("/**\n * @brief \n * \n * @return int \n */", result); + assert.strictEqual("/**\n * @brief \n * \n * @return int \n */", result); }); test("Casing text split: unidentifieable", () => { @@ -117,22 +117,22 @@ suite("Smart Text Tests", () => { // SCREAMING_SNAKE let result = testSetup.SetLine("int CREATE_foo();").GetResult(); - assert.equal("/**\n * @brief \n * \n * @return int \n */", result); + assert.strictEqual("/**\n * @brief \n * \n * @return int \n */", result); // snake_case result = testSetup.SetLine("int create_FOO();").GetResult(); - assert.equal("/**\n * @brief \n * \n * @return int \n */", result); + assert.strictEqual("/**\n * @brief \n * \n * @return int \n */", result); // Pascal result = testSetup.SetLine("int Createfoo();").GetResult(); - assert.equal("/**\n * @brief \n * \n * @return int \n */", result); + assert.strictEqual("/**\n * @brief \n * \n * @return int \n */", result); // camel result = testSetup.SetLine("int createFOO();").GetResult(); - assert.equal("/**\n * @brief \n * \n * @return int \n */", result); + assert.strictEqual("/**\n * @brief \n * \n * @return int \n */", result); // UPPER??? result = testSetup.SetLine("int CREATE_();").GetResult(); - assert.equal("/**\n * @brief \n * \n * @return int \n */", result); + assert.strictEqual("/**\n * @brief \n * \n * @return int \n */", result); }); }); |