EnumerableSet: Remove Boundary Check in _at (#2606)

* remove boundary check

* fix tests for EnumerableSet "index out of bound"

* Changelog

Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
This commit is contained in:
William Morriss
2021-04-20 12:51:26 -07:00
committed by GitHub
parent 750a17653d
commit 165e6f1948
3 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ function shouldBehaveLikeSet (valueA, valueB, valueC) {
describe('at', function () {
it('reverts when retrieving non-existent elements', async function () {
await expectRevert(this.set.at(0), 'EnumerableSet: index out of bounds');
await expectRevert.unspecified(this.set.at(0));
});
});