Skip to content

Commit

Permalink
WIP: Prepare for 5.040: Add the logical xor ^^
Browse files Browse the repository at this point in the history
TODO: Fix the doc in Construct.pm and date in Changes
  • Loading branch information
choroba committed May 24, 2024
1 parent 617f778 commit f376eab
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Revision history for Syntax-Construct

1.035 ???
- Perl 5.40.0 released

1.034 2023-11-30
- Perl 5.38.2 released

Expand Down
19 changes: 16 additions & 3 deletions lib/Syntax/Construct.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ use 5.006002;
use strict;
use warnings;

our $VERSION = '1.034';
our $VERSION = '1.035';

my %introduces = do { no warnings 'qw';
( '5.038' => [qw[
( '5.040' => [qw[
^^
]],
'5.038' => [qw[
unicode15.0 ^HOOK signature-default-operator
INCDIR *{} REG_INF_I32_MAX
^LAST_SUCCESSFUL_PATTERN
Expand Down Expand Up @@ -176,6 +179,8 @@ my %alias = (
# 5.038
'keyword-hook' => '^HOOK',
'optimistic-eval' => '*{}',
# 5.040
'logical-xor' => '^^',
);

my %_introduced = map {
Expand Down Expand Up @@ -284,7 +289,7 @@ Syntax::Construct - Explicitly state which non-feature constructs are used in th
=head1 VERSION
Version 1.034
Version 1.035
=head1 SYNOPSIS
Expand Down Expand Up @@ -938,6 +943,14 @@ L<perl5380delta/REG_INF has been raised from 65,536 to 2,147,483,647>
L<perl5380delta/New regexp variable ${^LAST_SUCCESSFUL_PATTERN}>
=head2 5.040
=head3 ^^
TODO: L<
Alias: logical-xor
=for completeness
=head2 old
Expand Down
4 changes: 4 additions & 0 deletions t/02-constructs.t
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ sub skippable {


my %tests = (
'5.040' => [
[ '^^',
'1 ^^ 0', 1 ],
],
'5.038' => [
[ 'unicode15.0',
'"\N{MOOSE}" eq "\N{U+1FACE}"', 1 ],
Expand Down
2 changes: 1 addition & 1 deletion t/05-functions.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use FindBin;

my %count;
BEGIN {
%count = (constructs => 97, old => 4, removed => 7);
%count = (constructs => 98, old => 4, removed => 7);
}

use Test::More tests => 5;
Expand Down
4 changes: 2 additions & 2 deletions xt/completness.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ use FindBin;

my $plan;
BEGIN {
my %count = (constructs => 97,
my %count = (constructs => 98,
removed => 7,
aliases => 77,
aliases => 78,
old => 4);
$plan = 5 * $count{constructs} + 3 * $count{removed}
+ 6 * $count{aliases} + $count{old} + 1;
Expand Down

0 comments on commit f376eab

Please sign in to comment.