Skip to content

Conversation

@JRaspass
Copy link
Contributor

@JRaspass JRaspass commented Sep 22, 2025

I've split this PR into two commits, the first modernises the test, the second the actual code, this way we can prove the test passes with both the existing and modernised library. See each commit for details of what changed.

This is the first test under lib to use Test2::V0 but it's my understanding that should be fine as we're not testing the language itself, just a library. Some tests under lib already use Test::More so this doesn't seem like much of a step up, and definitely beats the hand-printed TAP it had before.

  • This set of changes does not require a perldelta entry.

 - Use v5.40 and a modern testing framework.
 - Test different arguments to new.
 - Avoid writing to disk, it isn't necessary.
 - Move the version declaration into the package line.
 - Move the code above the POD and add an __END__ token.
 - Use v5.40 to get strict, warnings, and the module_true feature.
 - Use subroutine signatures and remove hand rolled arity croak.
@khwilliamson khwilliamson merged commit 4b10878 into Perl:blead Sep 23, 2025
34 checks passed
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