Skip to content

Commit

Permalink
🔍 test: Fix t.throws calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Apr 24, 2020
1 parent 94f6f5a commit 5500924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/src/heapq.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ test( "heapq" , t => {

) ;

t.throws( heapq.heappop.bind( null , heapq.heapify( increasing , [ ] ) ) , IndexError , "pop raises" ) ;
t.throws( heapq.heapreplace.bind( null , heapq.heapify( increasing , [ ] ) , 1 ) , IndexError , "replace raises" ) ;
t.throws( heapq.heappop.bind( null , heapq.heapify( increasing , [ ] ) ) , { instanceOf: IndexError } , "pop raises" ) ;
t.throws( heapq.heapreplace.bind( null , heapq.heapify( increasing , [ ] ) , 1 ) , { instanceOf: IndexError } , "replace raises" ) ;

const h = heapq.heapify( increasing , [ ] ) ;

Expand Down

0 comments on commit 5500924

Please sign in to comment.