Skip to content

Commit

Permalink
Merge pull request #8 from PharmCat/dev
Browse files Browse the repository at this point in the history
test update
  • Loading branch information
PharmCat authored May 8, 2023
2 parents ca6f554 + 213339d commit 8b1b5d5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ using Test, Tables, TypedTables, DataFrames, CSV
@test collect(keys(itr1)) == [1, 2, 3, 6]
@test length(itr1) == 4

@test getindex(itr1, 1) == 1
@test_nowarn eltype(itr1)
@test_throws ErrorException itr1[4]
@test_throws ErrorException itr1[5]

itr2 = MetidaBase.skipnonpositive(v1)
for i in itr2
@test MetidaBase.ispositive(i)
Expand All @@ -198,6 +203,14 @@ using Test, Tables, TypedTables, DataFrames, CSV
@test collect(keys(itr2)) == [1, 2]
@test length(itr2) == 2

@test getindex(itr2, 2) == 2
@test_nowarn eltype(itr2)
@test_throws ErrorException itr2[3]
@test_throws ErrorException itr2[4]
@test_throws ErrorException itr2[5]
@test_throws ErrorException itr2[6]


############################################################################
# OTHER
@test MetidaBase.nonunique([1,2,3,3,4,5,6,6]) == [6,3]
Expand Down

2 comments on commit 8b1b5d5

@PharmCat
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/83145

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.11.2 -m "<description of version>" 8b1b5d55dbda4578a88b48a6b298ff3fe45b31ef
git push origin v0.11.2

Please sign in to comment.