Skip to content

Commit

Permalink
Update CI badge in README and add missing test for AbstractString. (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre authored Apr 27, 2021
1 parent c4d1467 commit 9f9befc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## IPNets.jl
[![Build Status](https://travis-ci.org/JuliaWeb/IPNets.jl.svg?branch=master)](https://travis-ci.org/JuliaWeb/IPNets.jl)
[![CI](https://github.com/JuliaWeb/IPNets.jl/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/JuliaWeb/IPNets.jl/actions/workflows/ci.yml)
[![codecov.io](http://codecov.io/github/JuliaWeb/IPNets.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaWeb/IPNets.jl?branch=master)


Expand Down
2 changes: 2 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ using IPNets, Test, Sockets
IPv4Net(ip"1.2.3.4") == IPv4Net(ip"1.2.3.4", 32) ==
IPv4Net(ip"1.2.3.4", ip"255.255.255.255") ==
IPNet("1.2.3.4") == IPNet("1.2.3.4/32") ==
parse(IPv4Net, SubString("1.2.3.4")) ==
parse(IPNet, "1.2.3.4") == parse(IPNet, "1.2.3.4/32") ==
IPv4Net(0x01020304, typemax(UInt32))
@test IPv4Net("1.2.3.0/24") == parse(IPv4Net, "1.2.3.0/24") ==
Expand Down Expand Up @@ -75,6 +76,7 @@ using IPNets, Test, Sockets
@test IPv6Net("1:2::3:4") == parse(IPv6Net, "1:2::3:4") ==
IPv6Net("1:2::3:4/128") == parse(IPv6Net, "1:2::3:4/128") ==
IPv6Net(ip"1:2::3:4") == IPv6Net(ip"1:2::3:4", 128) ==
parse(IPv6Net, SubString("1:2::3:4")) ==
parse(IPNet, "1:2::3:4") == parse(IPNet, "1:2::3:4/128") ==
IPv6Net(0x00010002000000000000000000030004, typemax(UInt128))
@test IPv6Net("1:2::3:0/112") == parse(IPv6Net, "1:2::3:0/112") ==
Expand Down

0 comments on commit 9f9befc

Please sign in to comment.