aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-20 14:01:31 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-20 14:01:31 +0100
commit02845c3d25130e9473604cb2eeee42a7a7a8eadf (patch)
tree71969b17161d13d044d033d0ee7fd47deadb6575 /src/test
parentd79148947bc43764b041687b7c6ad2d6c944f70b (diff)
`make format`
Diffstat (limited to 'src/test')
-rw-r--r--src/test/AssetTest.cpp13
-rw-r--r--src/test/OptionalRefTest.cpp1
2 files changed, 3 insertions, 11 deletions
diff --git a/src/test/AssetTest.cpp b/src/test/AssetTest.cpp
index 563a253..8aa7629 100644
--- a/src/test/AssetTest.cpp
+++ b/src/test/AssetTest.cpp
@@ -10,18 +10,12 @@ using namespace testing;
class AssetTest : public Test {
public:
Config & cfg = Config::get_instance();
- void SetUp() override {
- this->cfg.asset.root_pattern = ".crepe-root";
- }
+ void SetUp() override { this->cfg.asset.root_pattern = ".crepe-root"; }
};
-TEST_F(AssetTest, Existant) {
- ASSERT_NO_THROW(Asset{"asset/texture/img.png"});
-}
+TEST_F(AssetTest, Existant) { ASSERT_NO_THROW(Asset{"asset/texture/img.png"}); }
-TEST_F(AssetTest, Nonexistant) {
- ASSERT_ANY_THROW(Asset{"asset/nonexistant"});
-}
+TEST_F(AssetTest, Nonexistant) { ASSERT_ANY_THROW(Asset{"asset/nonexistant"}); }
TEST_F(AssetTest, Rootless) {
cfg.asset.root_pattern.clear();
@@ -30,4 +24,3 @@ TEST_F(AssetTest, Rootless) {
Asset asset{arbitrary};
ASSERT_EQ(arbitrary, asset.get_path());
}
-
diff --git a/src/test/OptionalRefTest.cpp b/src/test/OptionalRefTest.cpp
index 219ccca..2072d56 100644
--- a/src/test/OptionalRefTest.cpp
+++ b/src/test/OptionalRefTest.cpp
@@ -35,4 +35,3 @@ TEST(OptionalRefTest, Implicit) {
EXPECT_TRUE(ref);
ASSERT_NO_THROW(ref.get());
}
-