From c3a04e113891c95181314db8dabcc555604aca5c Mon Sep 17 00:00:00 2001
From: Slaven Rezic <slaven@rezic.de>
Date: Sat, 2 Nov 2024 08:28:47 +0100
Subject: [PATCH] accept diagnostics from newer Getopt::Long (fix for GH#16)

---
 t/lib/Basic/Test.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/lib/Basic/Test.pm b/t/lib/Basic/Test.pm
index 3a875fa..2d78459 100644
--- a/t/lib/Basic/Test.pm
+++ b/t/lib/Basic/Test.pm
@@ -78,7 +78,7 @@ sub cmd_line_errors : Tests(5) {
 
     # This trips the getopt validation, not the moose type constraint
     cmd_stdout_like [qw'errors.pl --doom=lots'],
-        qr/^Value "lots" invalid for option doom \(number expected\)\nUsage/;
+        qr/^Value "lots" invalid for option doom \((?:integer\s+)?number expected\)\nUsage/;
 
     # This gets past getopt but trips a moose type constraint
     cmd_stdout_like [qw'errors.pl --missile_launchers=fast'],
-- 
2.11.0