better test data

This commit is contained in:
Samuel Oberhofer 2022-05-26 10:01:43 +02:00
parent 395595e71b
commit 0778e02ed0
1 changed files with 7 additions and 7 deletions

View File

@ -6,18 +6,18 @@ int main() {
Sortiment sortiment; Sortiment sortiment;
sortiment.addWare(new Ware("ware1", 2, 13.5, 10, 20)); sortiment.addWare(new Ware("ware1", 1, 13.5, 10, 20));
sortiment.addWare(new Ware("ware1", 7, 14.6, 15, 20)); sortiment.addWare(new Ware("ware1", 4, 14.6, 15, 20));
sortiment.addWare(new Ware("ware1", 5, 2.1, 13, 10)); sortiment.addWare(new Ware("ware1", 5, 2.1, 13, 10));
sortiment.addWare(new Ware("ware1", 2, 6.5, 10, 20)); sortiment.addWare(new Ware("ware1", 6, 6.5, 10, 20));
sortiment.addWare(new Ware("ware1", 7, 22.6, 15, 20)); sortiment.addWare(new Ware("ware1", 7, 22.6, 15, 20));
sortiment.addWare(new Ware("ware1", 5, 15.1, 13, 10)); sortiment.addWare(new Ware("ware1", 5, 15.1, 13, 10));
sortiment.addWare(new Ware("ware1", 2, 13.5, 10, 20)); sortiment.addWare(new Ware("ware1", 8, 13.5, 10, 20));
sortiment.addWare(new Ware("ware1", 7, 13.6, 15, 20)); sortiment.addWare(new Ware("ware1", 9, 13.6, 15, 20));
sortiment.addWare(new Ware("ware1", 5, 13.1, 13, 10)); sortiment.addWare(new Ware("ware1", 2, 13.1, 13, 10));
sortiment.addWare(new Ware("ware1", 5, 13.1, 13, 10)); sortiment.addWare(new Ware("ware1", 5, 13.1, 13, 10));
sortiment.sort(4); sortiment.sort(1);
for (int i = 0; i < 10; i++) { for (int i = 0; i < 10; i++) {
std::cout << *(sortiment.waren[i]) << std::endl; std::cout << *(sortiment.waren[i]) << std::endl;