diff options
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(); |