Skip to content

Commit

Permalink
add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jw3126 committed Oct 14, 2020
1 parent b14549f commit e119651
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ using RangeHelpers
using Test
using Documenter

Documenter.doctest(RangeHelpers)

@testset "Explict" begin

@testset "no directions" begin
@test range(1, 2, length = 2) === 1.0:1.0:2.0
@test range(1, 2, step = 0.5) == [1, 1.5, 2]
@test range(1, stop = 2, step = 0.5) === 1.0:0.5:2.0
@test range(start=1, stop = 2, step = 0.5) === 1.0:0.5:2.0
end

@testset "start" begin
@test range(strictbelow(1), 3.1, step = 2) -0.9:2.0:3.1
@test range(below(1), 3.1, step = 2) -0.9:2.0:3.1
Expand Down Expand Up @@ -84,3 +90,4 @@ for dir in instances(RangeHelpers.Direction)
println("@test range($start, $stop, step=$step) === $r")
end

Documenter.doctest(RangeHelpers)

2 comments on commit e119651

@jw3126
Copy link
Owner Author

@jw3126 jw3126 commented on e119651 Oct 14, 2020

Choose a reason for hiding this comment

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

@JuliaRegistrator register()

@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/22942

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.1.0 -m "<description of version>" e119651ae2a4bbacb4e967c883ce993b69489cdc
git push origin v0.1.0

Please sign in to comment.