From 9f9befcd6c80b02e88f97dc4570940a2999c04b2 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Tue, 27 Apr 2021 17:00:38 +0200 Subject: [PATCH] Update CI badge in README and add missing test for AbstractString. (#18) --- README.md | 2 +- test/runtests.jl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4da5c22..b274180 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/test/runtests.jl b/test/runtests.jl index 7df4172..57cac8e 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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") == @@ -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") ==