From c1caa62c5d3c3cb34373e618a3bc8b883dc05eaf Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Thu, 5 May 2016 10:47:35 +0200 Subject: [PATCH] Add test data that breaks IP address parsing --- .gitignore | 1 + tests/root/testpage2.rst | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index ef30f6c..d096524 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ dist/ .coverage htmlcov/ build/ +_build/ diff --git a/tests/root/testpage2.rst b/tests/root/testpage2.rst index f7c3351..f6ecf35 100644 --- a/tests/root/testpage2.rst +++ b/tests/root/testpage2.rst @@ -6,3 +6,6 @@ This page contains IP addresses :ip:v4:`127.0.0.1`, :ip:v4:`192.168.0.1` and There is also :ip:v6range:`2001:dada:b001::/64` and :ip:v4range:`172.16.0.0/24`. + +The extension should also handle malformed things like :ip:v4:``, +:ip:v6:``, :ip:v4range:`` and :ip:v6range:`` properly.