Skip to content

Commit

Permalink
Remove special casing for Travis; add tests of difference between int…
Browse files Browse the repository at this point in the history
…erval and Interval
  • Loading branch information
dpsanders committed Jun 24, 2017
1 parent d510426 commit 03d9795
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/intervals/intervals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## Interval type

if haskey(ENV, "IA_VALID") || haskey(ENV, "CI") == true # CI is for Travis
if haskey(ENV, "IA_VALID") == true
const validity_check = true
else
const validity_check = false
Expand Down
10 changes: 10 additions & 0 deletions test/interval_tests/consistency.jl
Original file line number Diff line number Diff line change
Expand Up @@ -324,4 +324,14 @@ c = @interval(0.25, 4.0)

end

@testset "Difference between Interval and interval" begin
@test interval(1, 2) == Interval(1, 2)

@test inf(Interval(3, 2)) == 3
@test_throws ArgumentError interval(3, 2)

@test sup(Interval(Inf, Inf)) == Inf
@test_throws ArgumentError interval(Inf, Inf)
end

end

0 comments on commit 03d9795

Please sign in to comment.