]> git.saurik.com Git - apt.git/blobdiff - test/libapt/getlanguages_test.cc
add default and override handling for Cnf::FindVector
[apt.git] / test / libapt / getlanguages_test.cc
index cef89bde6583d574f6f55fc0826f879348b87cfb..51cfecee321ed3990ccc1b7ed34fb1ba28b08bc8 100644 (file)
@@ -105,6 +105,14 @@ int main(int argc,char *argv[])
        vec = APT::Configuration::getLanguages(false, false, env);
        equals(vec.size(), 1);
        equals(vec[0], "fr");
+
+       _config->Set("Acquire::Languages", "environment,en");
+       env[0] = "de_DE.UTF-8";
+       vec = APT::Configuration::getLanguages(false, false, env);
+       equals(vec.size(), 3);
+       equals(vec[0], "de_DE");
+       equals(vec[1], "de");
+       equals(vec[2], "en");
        _config->Set("Acquire::Languages", "");
 
        _config->Set("Acquire::Languages::1", "environment");