]> git.saurik.com Git - apt.git/blobdiff - test/libapt/configuration_test.cc
rename CleaAll() -> Clear()
[apt.git] / test / libapt / configuration_test.cc
index 9a3e2c11865c1253b2ccde0afe847e9120d505ae..5120e86c9c75d4ddaae0b11a173b601160aff1ab 100644 (file)
@@ -80,6 +80,10 @@ int main(int argc,const char *argv[]) {
        equals(Cnf.FindFile("Dir::State"), "/srv/sid/var/lib/apt");
        equals(Cnf.FindFile("Dir::Aptitude::State"), "/srv/sid/var/lib/aptitude");
 
+        Cnf.Set("Moo::Bar", "1");
+        Cnf.Clear();
+        equals(Cnf.Find("Moo::Bar"), "");
+
        //FIXME: Test for configuration file parsing;
        // currently only integration/ tests test them implicitly