Fix formatting
Change-Id: Ifff22c32adb05098c458f0ddabc24e2c310c2ce3
diff --git a/tests/doctest_integration.cpp b/tests/doctest_integration.cpp
index b333b7d..4538dde 100644
--- a/tests/doctest_integration.cpp
+++ b/tests/doctest_integration.cpp
@@ -2,23 +2,19 @@
#include <doctest/doctest.h>
#include <trompeloeil.hpp>
-namespace trompeloeil
-{
- template <>
- void reporter<specialized>::send(
+namespace trompeloeil {
+template <>
+void reporter<specialized>::send(
severity s,
const char* file,
unsigned long line,
const char* msg)
- {
+{
auto f = line ? file : "[file/line unavailable]";
- if (s == severity::fatal)
- {
- ADD_FAIL_AT(f, line, msg);
+ if (s == severity::fatal) {
+ ADD_FAIL_AT(f, line, msg);
+ } else {
+ ADD_FAIL_CHECK_AT(f, line, msg);
}
- else
- {
- ADD_FAIL_CHECK_AT(f, line, msg);
- }
- }
+}
}
diff --git a/tests/path_completion.cpp b/tests/path_completion.cpp
index c68cca0..cff254f 100644
--- a/tests/path_completion.cpp
+++ b/tests/path_completion.cpp
@@ -88,7 +88,6 @@
{
input = "ls /e";
expected = {"example:ano/", "example:anoda/", "example:bota/", "example:leafInt ", "example:list[", "example:ovoce[", "example:ovocezelenina[", "example:twoKeyList["};
-
}
SECTION("ls example:bota")
diff --git a/tests/wait-a-bit-longer.cpp b/tests/wait-a-bit-longer.cpp
index 8ec4f4b..a29f3a2 100644
--- a/tests/wait-a-bit-longer.cpp
+++ b/tests/wait-a-bit-longer.cpp
@@ -1,5 +1,5 @@
-#include <doctest/doctest.h>
#include <chrono>
+#include <doctest/doctest.h>
#include <thread>
#include <trompeloeil.hpp>
diff --git a/tests/yang.cpp b/tests/yang.cpp
index 2ca1704..6ce0fb2 100644
--- a/tests/yang.cpp
+++ b/tests/yang.cpp
@@ -454,7 +454,6 @@
SECTION("small")
{
value = "small";
-
}
SECTION("medium")
{