From 6f69cd54347a967f543067efc0ab55c52f44762d Mon Sep 17 00:00:00 2001 From: kobaken Date: Sun, 7 Dec 2025 22:22:30 +0900 Subject: [PATCH 1/2] Require Perl v5.38+ for Syntax::Operator::Is integration test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Custom infix operators from Syntax::Operator::Is only work on Perl v5.38+. On older Perl versions, the module can be installed but the operator is not properly registered, causing syntax errors like "Bareword found where operator expected". Fixes CPAN Testers failure on Perl 5.22. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- t/10-integration/Syntax-Operator-Is.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/10-integration/Syntax-Operator-Is.t b/t/10-integration/Syntax-Operator-Is.t index 24feca7..81faef4 100644 --- a/t/10-integration/Syntax-Operator-Is.t +++ b/t/10-integration/Syntax-Operator-Is.t @@ -1,6 +1,6 @@ use Test2::V0; +use Test2::Require::Perl 'v5.38'; # Syntax::Operator::Is requires Perl v5.38+ for custom infix operators use Test2::Require::Module 'Syntax::Operator::Is', '0.02'; -use Test2::Require::Module 'XS::Parse::Infix', '0.44'; use Test2::Require::Module 'Data::Checks', '0.09'; use Syntax::Keyword::Assert; From 1048e4e657ad0ccf1ed087a71b3525be961b69f4 Mon Sep 17 00:00:00 2001 From: kobaken Date: Sun, 7 Dec 2025 22:31:36 +0900 Subject: [PATCH 2/2] Fix Windows test failure: use "0" instead of empty string for env var MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Windows, setting an environment variable to an empty string via putenv() actually deletes the variable. Using `!!0` (which becomes "") caused PERL_ASSERT_ENABLED to be deleted, making getenv() return NULL and keeping assertions enabled. Changed to `0` which becomes "0" string, a proper falsy value that persists in the environment. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- t/02_assert_disabled.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/02_assert_disabled.t b/t/02_assert_disabled.t index 21176da..5ce8e39 100644 --- a/t/02_assert_disabled.t +++ b/t/02_assert_disabled.t @@ -1,7 +1,7 @@ use Test2::V0; BEGIN { - $ENV{PERL_ASSERT_ENABLED} = !!0 + $ENV{PERL_ASSERT_ENABLED} = 0 } use Syntax::Keyword::Assert;