Skip to content

Commit

Permalink
fix tests (#9)
Browse files Browse the repository at this point in the history
* fix tests

* travis

* test coverage
  • Loading branch information
sbromberger authored Mar 25, 2017
1 parent ad7bd72 commit 88966d5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 100 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --check-bounds=yes -e 'Pkg.clone(pwd()); Pkg.build("IPNets"); Pkg.test("IPNets"; coverage=true)'
after_success:
- julia -e 'cd(Pkg.dir("IPNets")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
- julia -e 'cd(Pkg.dir("IPNets")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder()); Codecov.submit(process_folder())'
2 changes: 1 addition & 1 deletion src/IPNets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ end
minimum(net::IPNet) = net[1]
maximum(net::IPNet) = net[end]
extrema(net::IPNet) = (minimum(net), maximum(net))
getindex{T<:IPNet}(net::T, i) = net[i]
getindex(net::IPNet, i) = net[i]
getindex(net::IPNet, r::Range) = [net[i] for i in r]
# getindex(net::IPNet, i::(Integer,)) = getindex(net,i[1])
start(net::IPNet) = net[1]
Expand Down
98 changes: 0 additions & 98 deletions test/ipnet.jl

This file was deleted.

2 changes: 2 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,6 @@ o5 = IPv6Net("2001:1::4/126")
@test eltype(o1) == IPv6

@test n5[1] == ip41
@test getindex(n5,1) == ip41
@test o5[1] == ip61
@test getindex(o5,1) == ip61

0 comments on commit 88966d5

Please sign in to comment.