This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
File-Glob: exercise GLOB_MARK, GLOB_NOCHECK, etc.
authorJames E Keenan <jkeenan@cpan.org>
Tue, 26 Dec 2023 13:35:58 +0000 (13:35 +0000)
committerJames E Keenan <jkeenan@cpan.org>
Mon, 1 Jan 2024 22:28:36 +0000 (17:28 -0500)
commit07bff9c36ac74dfa09e0f426659302304f0834fa
treefe1466dcd9712159a3b91c45f6a6176f54cf63d3
parent7425ecc75c813d1dddfbda86480702b640c4b907
File-Glob: exercise GLOB_MARK, GLOB_NOCHECK, etc.

For GH #21744

t/basic.t:

* Exercise GLOB_NOCHECK flag, without and with GLOB_QUOTE flag.

* Move one particular assignment to '@a' was only used within
the subsequent SKIP block.  For consistency with other SKIP blocks, move
list assignment to within the block.

* Exercise GLOB_NOSORT flag, thereby confirming that it is the default
sorting mechanism.  There is, of course, a slight chance that using
GLOB_NOSORT will return names in the same order as the default
GLOB_ALPHASORT.  So the best we can do is to confirm that the same names
were returned in each instance.

* Explicitly test GLOB_ALPHASORT

t/global.t:

* Provide descriptions for two unit tests previously lacking
them.

Corrections:
* t/basic.t: Tidy leading whitespace
* Glob.pm: One-character typo
* Increment $VERSION.
* Correct count within SKIP block
ext/File-Glob/Glob.pm
ext/File-Glob/t/basic.t
ext/File-Glob/t/global.t