]> git.saurik.com Git - apt.git/blobdiff - test/libapt/getarchitectures_test.cc
test/integration/test-debsrc-hashes: add integration test, thanks to Daniel Hartwig
[apt.git] / test / libapt / getarchitectures_test.cc
index 1500caeeddca06a602de59962d41125759afbd7e..807469263489cf6a31148154dccc9571fd547299 100644 (file)
@@ -7,13 +7,6 @@
 
 #include <iostream>
 
-// simple helper to quickly output a vector of strings
-void dumpVector(std::vector<std::string> vec) {
-       for (std::vector<std::string>::const_iterator v = vec.begin();
-            v != vec.end(); v++)
-               std::cout << *v << std::endl;
-}
-
 int main(int argc,char *argv[])
 {
        std::vector<std::string> vec;
@@ -39,6 +32,12 @@ int main(int argc,char *argv[])
        _config->Set("APT::Architecture", "armel");
        vec = APT::Configuration::getArchitectures(false);
        equals(vec.size(), 2);
+       equals(vec[0], "armel");
+       equals(vec[1], "i386");
+
+       _config->Set("APT::Architectures::2", "armel");
+       vec = APT::Configuration::getArchitectures(false);
+       equals(vec.size(), 2);
        equals(vec[0], "i386");
        equals(vec[1], "armel");