Skip to content

Commit e332a29

Browse files
committed
fixed format target to include tests
1 parent 7f28e8f commit e332a29

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ do
5959
shift
6060
;;
6161
format)
62-
clang-format -i include/app/*.hpp src/*.cpp
62+
clang-format -i include/app/*.hpp src/*.cpp tests/*.?pp
6363
git status -s
6464

6565
shift

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
//
44

55
#include <spdlog/spdlog.h>
6+
67
#include <app/tiny.hpp>
8+
#include <print>
79
#include <string>
810
#include <termio/termio.hpp>
9-
#include <print>
1011

1112
constexpr std::string_view BANNER = R"(
1213
_______ __ _______ __ __ _______
@@ -25,4 +26,3 @@ int main() {
2526

2627
return 0;
2728
}
28-

tests/main_unit.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
//
44
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() function
55

6-
#include <catch2/catch_all.hpp>
7-
#include <app/tiny.hpp>
86
#include <spdlog/spdlog.h>
7+
8+
#include <app/tiny.hpp>
9+
#include <catch2/catch_all.hpp>
910
#include <print>
1011
#include <termio/termio.hpp>
1112
#include <vendor/perftimer.hpp>
@@ -14,7 +15,6 @@ perftimer::PerfTimer timer("Catch2 Unit Tests");
1415
using namespace termio::termio;
1516

1617
struct MainTestSetup {
17-
1818
MainTestSetup() {
1919
spdlog::set_level(spdlog::level::critical);
2020

0 commit comments

Comments
 (0)