Skip to content

Commit

Permalink
vavr-io#1797 multimap tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslansennov committed Jan 20, 2017
1 parent 84a4c69 commit ebcd715
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ protected <T> IntMultimap<T> of(T... elements) {
@Override
protected <T> IntMultimap<T> ofAll(Iterable<? extends T> elements) {
Multimap<Integer, T> map = emptyMap();
int i = 0;
for (T element : elements) {
map = map.put(map.size(), element);
map = map.put(i++, element);
}
return IntMultimap.of(map);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,4 @@ public void shouldNarrowMap() {
assertThat(actual).isEqualTo(3);
}

// -- hashCode

@Override
@Test
public void shouldNotThrowStackOverflowErrorWhenCalculatingHashCodeOf1000000Integers() {
// TODO: does not return / runs infinitely
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,4 @@ public void shouldNarrowMap() {
assertThat(actual).isEqualTo(3);
}

// -- hashCode

@Override
@Test
public void shouldNotThrowStackOverflowErrorWhenCalculatingHashCodeOf1000000Integers() {
// TODO: does not return / runs infinitely
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,4 @@ public void shouldNarrowMap() {
assertThat(actual).isEqualTo(3);
}

// -- hashCode

@Override
@Test
public void shouldNotThrowStackOverflowErrorWhenCalculatingHashCodeOf1000000Integers() {
// TODO: does not return / runs infinitely
}

}

0 comments on commit ebcd715

Please sign in to comment.