From 4287220bcfe8a19395b9c3a9e66e0245380e3456 Mon Sep 17 00:00:00 2001 From: Jonas Ladner Date: Sat, 8 Jan 2022 14:54:24 +0100 Subject: [PATCH] Add test to check if hashSet is still filled after iterator-usage #41 --- W09H01/src/test/pgdp/hashset/TupleHashSetTest.java | 1 - 1 file changed, 1 deletion(-) diff --git a/W09H01/src/test/pgdp/hashset/TupleHashSetTest.java b/W09H01/src/test/pgdp/hashset/TupleHashSetTest.java index 2ecfe09..939e6e8 100644 --- a/W09H01/src/test/pgdp/hashset/TupleHashSetTest.java +++ b/W09H01/src/test/pgdp/hashset/TupleHashSetTest.java @@ -416,7 +416,6 @@ void iteratorFullHashSet() { } assertEquals(353, tuplesInHashSet.size()); assertEquals(353, integerIntegerTupleHashSet.insertedTuples()); - Arrays.stream(tuples).forEach(integerIntegerTupleHashSet::insert); tuplesInHashSet = new ArrayList<>(); for (Tuple integerIntegerTuple : integerIntegerTupleHashSet) {