Skip to content

Commit

Permalink
Improve coverage again
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahao committed Nov 7, 2015
1 parent 33bcbfb commit 5cfbd4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/combinations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ import Combinatorics: combinations
@test_throws DomainError collect(CoolLexCombinations(-1, 1))
@test_throws DomainError collect(CoolLexCombinations(5, 0))
@test collect(CoolLexCombinations(4,2)) == Vector[[1,2], [2,3], [1,3], [2,4], [3,4], [1,4]]
@test isa(start(CoolLexCombinations(1000, 20)), Combinatorics.CoolLexIterState{BigInt})

1 change: 1 addition & 0 deletions test/numbers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ using Base.Test
# catalan
@test catalannum(5) == 42
@test catalannum(30) == parse(BigInt,"3814986502092304")
@test_throws DomainError catalannum(-1)

# fibonacci
@test fibonaccinum(5) == 5
Expand Down

0 comments on commit 5cfbd4e

Please sign in to comment.