diff options
author | Michael Vogt <egon@debian-devbox> | 2012-06-11 14:56:11 +0200 |
---|---|---|
committer | Michael Vogt <egon@debian-devbox> | 2012-06-11 14:56:11 +0200 |
commit | cb6a5776bfb5f74d94f32db55f2de148c27a5d10 (patch) | |
tree | 3c8f8bcaeefb9e51bff8476b262de18b4b39b11b /test/libapt/getlanguages_test.cc | |
parent | 563fd891d80feedefd812aad83844e2189870e2c (diff) | |
parent | 249a02f55a2b311fc130efe3b3a99995b6a71360 (diff) |
merged from donkult
Diffstat (limited to 'test/libapt/getlanguages_test.cc')
-rw-r--r-- | test/libapt/getlanguages_test.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/libapt/getlanguages_test.cc b/test/libapt/getlanguages_test.cc index 274cf4aa4..cef89bde6 100644 --- a/test/libapt/getlanguages_test.cc +++ b/test/libapt/getlanguages_test.cc @@ -144,7 +144,8 @@ int main(int argc,char *argv[]) _config->Set("Acquire::Languages", "none"); vec = APT::Configuration::getLanguages(true, false, env); - equals(vec.size(), 0); + equals(vec.size(), 1); + equals(vec[0], "none"); _config->Set("Acquire::Languages", ""); _config->Set("Dir::State::lists", "/non-existing-dir"); @@ -168,7 +169,8 @@ int main(int argc,char *argv[]) _config->Set("Acquire::Languages", "none"); env[0] = "de_DE.UTF-8"; vec = APT::Configuration::getLanguages(true, false, env); - equals(vec.size(), 0); + equals(vec.size(), 1); + equals(vec[0], "none"); _config->Set("Acquire::Languages", ""); //FIXME: Remove support for this deprecated setting |