Skip to content

Commit

Permalink
Fixing test for non-exported functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardreeve committed Apr 4, 2017
1 parent 0fa96cd commit 79f840a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/Metacommunity.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ end

tax = Taxonomy(DataFrame(Species=["This", "That"]), Dict(:Species=>1.0))
@testset "Taxonomy" begin
@test counttypes(tax) == 2
@test hasnames(tax)
@test getnames(tax) == ["This", "That"]
@test Diversity.counttypes(tax) == 2
@test Diversity.hasnames(tax)
@test Diversity.getnames(tax) == ["This", "That"]
@test_throws ErrorException Diversity.getsimilarity(tax)
@test_throws ErrorException Diversity.getordinariness(tax, abnorm)
@test_throws ErrorException Taxonomy(DataFrame(Species=["This", "That"]),
Expand Down

0 comments on commit 79f840a

Please sign in to comment.