summaryrefslogtreecommitdiffstats
path: root/src/test/CppTests/TrailingReturns.test.ts
diff options
context:
space:
mode:
authorto-s <to-s@users.noreply.github.com>2021-05-08 00:47:21 +0200
committerChristoph Schlosser <2466365+cschlosser@users.noreply.github.com>2021-05-08 21:01:49 +0200
commitddd24fe12bfb3557f422c1c8dc1d5464d2961c34 (patch)
treeabd59e9b0f80fac1b828926d1194ea7cff364e21 /src/test/CppTests/TrailingReturns.test.ts
parent54aaa131a116ac63f918b222ca46faeb61efd1e9 (diff)
downloaddoxdocgen-ddd24fe12bfb3557f422c1c8dc1d5464d2961c34.tar.gz
Reordered assertion parameter in tests
Due to https://github.com/cschlosser/doxdocgen/issues/218
Diffstat (limited to 'src/test/CppTests/TrailingReturns.test.ts')
-rw-r--r--src/test/CppTests/TrailingReturns.test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/CppTests/TrailingReturns.test.ts b/src/test/CppTests/TrailingReturns.test.ts
index f60cbb4..4367313 100644
--- a/src/test/CppTests/TrailingReturns.test.ts
+++ b/src/test/CppTests/TrailingReturns.test.ts
@@ -18,23 +18,23 @@ suite("C++ - Trailing returns tests", () => {
// tests
test("Trailing return", () => {
const result = testSetup.SetLine("auto foo() -> int;").GetResult();
- assert.strictEqual("/**\n * @brief \n * \n * @return int \n */", result);
+ assert.strictEqual(result, "/**\n * @brief \n * \n * @return int \n */");
});
test("Trailing return with decltype", () => {
const result = testSetup.SetLine("auto foo(int a, double b) -> decltype(a + b);").GetResult();
// tslint:disable-next-line: max-line-length
- assert.strictEqual("/**\n * @brief \n * \n * @param a \n * @param b \n * @return decltype(a + b) \n */", result);
+ assert.strictEqual(result, "/**\n * @brief \n * \n * @param a \n * @param b \n * @return decltype(a + b) \n */");
});
test("Multiple trailing returns", () => {
const result = testSetup.SetLine("auto foo() -> auto(*)() -> tmp<int>(*)();").GetResult();
- assert.strictEqual("/**\n * @brief \n * \n * @return auto(*)() -> tmp<int>(*)() \n */", result);
+ assert.strictEqual(result, "/**\n * @brief \n * \n * @return auto(*)() -> tmp<int>(*)() \n */");
});
test("Trailing return with keywords", () => {
const result = testSetup.SetLine("auto foo(const int& a, const double* b) const noexcept -> const double&;")
.GetResult();
- assert.strictEqual("/**\n * @brief \n * \n * @param a \n * @param b \n * @return const double& \n */", result);
+ assert.strictEqual(result, "/**\n * @brief \n * \n * @param a \n * @param b \n * @return const double& \n */");
});
});