aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-19 22:23:19 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-19 22:23:19 +0000
commit25aa93d22cdab199489d31b2b54574db7283cb5e (patch)
tree35e03bd3da6d4e5f64943eb7b2afd0bf94f02c0b
parentebe3297f0309fde8b8b22c4074a7dcec3aaf5fb5 (diff)
downloadpaludis-25aa93d22cdab199489d31b2b54574db7283cb5e.tar.gz
paludis-25aa93d22cdab199489d31b2b54574db7283cb5e.tar.xz
Add in a few more tests for KeyValueConfigFile
-rw-r--r--paludis/key_value_config_file_TEST.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/paludis/key_value_config_file_TEST.cc b/paludis/key_value_config_file_TEST.cc
index 5f4a007..eb076b0 100644
--- a/paludis/key_value_config_file_TEST.cc
+++ b/paludis/key_value_config_file_TEST.cc
@@ -43,6 +43,7 @@ namespace test_cases
s << "two = second" << std::endl;
s << "three" << std::endl;
s << "four = \"fourth\" " << std::endl;
+ s << "five = ''" << std::endl;
KeyValueConfigFile ff(&s);
TEST_CHECK_EQUAL(ff.get("one"), "first");
@@ -50,6 +51,7 @@ namespace test_cases
TEST_CHECK_EQUAL(ff.get("three"), "");
TEST_CHECK_EQUAL(ff.get("four"), "fourth");
TEST_CHECK_EQUAL(ff.get("five"), "");
+ TEST_CHECK_EQUAL(ff.get("six"), "");
}
} test_key_value_config_file;