From d016834e39f668449385b1668240bdf905d62ade Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 28 Sep 2012 14:43:39 +0200 Subject: add new ClearAll --- test/libapt/configuration_test.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/libapt/configuration_test.cc') diff --git a/test/libapt/configuration_test.cc b/test/libapt/configuration_test.cc index 9a3e2c118..5ec48834a 100644 --- a/test/libapt/configuration_test.cc +++ b/test/libapt/configuration_test.cc @@ -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.ClearAll(); + equals(Cnf.Find("Moo::Bar"), ""); + //FIXME: Test for configuration file parsing; // currently only integration/ tests test them implicitly -- cgit v1.2.3 From 62b66f2593293aea5b42185fd2a2eb9d6e4d0cf2 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 1 Oct 2012 15:05:43 +0200 Subject: rename CleaAll() -> Clear() --- test/libapt/configuration_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/libapt/configuration_test.cc') diff --git a/test/libapt/configuration_test.cc b/test/libapt/configuration_test.cc index 5ec48834a..5120e86c9 100644 --- a/test/libapt/configuration_test.cc +++ b/test/libapt/configuration_test.cc @@ -81,7 +81,7 @@ int main(int argc,const char *argv[]) { equals(Cnf.FindFile("Dir::Aptitude::State"), "/srv/sid/var/lib/aptitude"); Cnf.Set("Moo::Bar", "1"); - Cnf.ClearAll(); + Cnf.Clear(); equals(Cnf.Find("Moo::Bar"), ""); //FIXME: Test for configuration file parsing; -- cgit v1.2.3