aboutsummaryrefslogtreecommitdiff
path: root/src/test/AssetTest.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-22 15:10:49 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-22 15:10:49 +0100
commitd038f192c7dcb453c9fc19082cd1b642c8f70fc8 (patch)
treebcb539657cd8b35ed742f19e5673c777ab39610c /src/test/AssetTest.cpp
parentc3c3476f1d82aa83d8f8dc706488475dc2cf1e55 (diff)
parent4117d1d287f1d87efd0577d56819520e981a7f1c (diff)
merge with `master`
Diffstat (limited to 'src/test/AssetTest.cpp')
-rw-r--r--src/test/AssetTest.cpp13
1 files changed, 3 insertions, 10 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());
}
-