diff options
author | rebecca “wiggles” turner <rbt@sent.as> | 2024-08-23 22:09:11 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@localhost> | 2024-08-23 22:09:11 +0000 |
commit | c5949bfe313a92aab0e4cf38ab2407b0ac922ce8 (patch) | |
tree | ed9880d9cc4f25b240d83c8d8fdd04e533ca8afc /tests | |
parent | 984563735934f63c972d0539b4ea57e87389d2a0 (diff) | |
parent | e3c289dbe945415367dc1f54f85ad2452f5a97e0 (diff) |
Merge "libutil/config: unify path setting types" into main
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/libutil/paths-setting.cc | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/tests/unit/libutil/paths-setting.cc b/tests/unit/libutil/paths-setting.cc index b450b0cf9..17cb125c8 100644 --- a/tests/unit/libutil/paths-setting.cc +++ b/tests/unit/libutil/paths-setting.cc @@ -15,7 +15,7 @@ public: : Config() { } - PathsSetting paths{this, Paths(), "paths", "documentation"}; + PathsSetting<Paths> paths{this, Paths(), "paths", "documentation"}; }; struct PathsSettingTest : public ::testing::Test { @@ -55,20 +55,6 @@ TEST_F(PathsSettingTest, parse) { ); } -TEST_F(PathsSettingTest, bool) { - auto config = mkConfig(); - // No paths: - ASSERT_FALSE(config.paths); - // Set a path: - config.set("paths", "/puppy.nix"); - // Now there are paths: - ASSERT_TRUE(config.paths); - - // Multiple paths count too: - config.set("paths", "/puppy.nix /doggy.nix"); - ASSERT_TRUE(config.paths); -} - TEST_F(PathsSettingTest, append) { auto config = mkConfig(); |