Skip to content

Conversation

@kfly8
Copy link
Owner

@kfly8 kfly8 commented Dec 7, 2025

This pull request makes minor improvements to the test suite for compatibility and correctness. The main changes are related to environment variable handling and Perl version requirements in test files.

Test environment and compatibility updates:

kfly8 and others added 2 commits December 7, 2025 22:22
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 <noreply@anthropic.com>
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 <noreply@anthropic.com>
@kfly8 kfly8 merged commit 814f4e7 into main Dec 7, 2025
14 checks passed
@kfly8 kfly8 deleted the fix-tests branch December 7, 2025 13:33
@coveralls
Copy link

Pull Request Test Coverage Report for Build 20005012405

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 84.793%

Totals Coverage Status
Change from base Build 20004509795: 0.0%
Covered Lines: 184
Relevant Lines: 217

💛 - Coveralls

@kfly8 kfly8 changed the title Fix tests Fix test failures on Windows and older Perl Dec 8, 2025
kfly8 added a commit that referenced this pull request Dec 8, 2025
Changelog diff is:

diff --git a/Changes b/Changes
index 960d9de..b9e7aba 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,10 @@ Revision history for Perl extension Syntax-Keyword-Assert
 
 {{$NEXT}}
 
+0.17 2025-12-08T13:44:46Z
+    - Add custom error message support #11
+    - Fix test failures on Windows and older Perl #13
+
 0.16 2024-12-18T09:01:18Z
     - Fixed `isa` operator #9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants