>From 8353cdd05e3ad8c241e5383ca0745948f7a6cc58 Mon Sep 17 00:00:00 2001 From: Pete Cordell Date: Fri, 15 Apr 2016 17:33:17 +0100 Subject: [PATCH] Added regexp tests that fail but should pass --- test/regexp/fussyipaddress | 2 ++ test/regexp/timestamp | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 test/regexp/fussyipaddress create mode 100644 test/regexp/timestamp diff --git a/test/regexp/fussyipaddress b/test/regexp/fussyipaddress new file mode 100644 index 0000000..3e4b44f --- /dev/null +++ b/test/regexp/fussyipaddress @@ -0,0 +1,2 @@ +=>((1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])\.){3}(1?[0-9]{1,2}|2[0-4][0-9]|25[0-5]) +192.168.254.0 diff --git a/test/regexp/timestamp b/test/regexp/timestamp new file mode 100644 index 0000000..0cc4b59 --- /dev/null +++ b/test/regexp/timestamp @@ -0,0 +1,7 @@ +=>\d{8}T\d{6}\.?\d{0,6} +# This gives incorrect result +20160412T112319 +# These give correct result +20160412T112319. +20160412T112319.43 +20160412T112319.432312 -- 2.5.3.windows.1