Skip to content

Commit

Permalink
switches.t: stop testing that -E turns on ~~
Browse files Browse the repository at this point in the history
~~ is not feature guarded to begin with!  I think this test was maybe a
mistake, or maybe became obsolete over time.
  • Loading branch information
rjbs committed Jul 25, 2021
1 parent 9ad2812 commit 6fee893
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions t/run/switches.t
Expand Up @@ -12,7 +12,7 @@ BEGIN {

BEGIN { require "./test.pl"; require "./loc_tools.pl"; }

plan(tests => 136);
plan(tests => 135);

use Config;

Expand Down Expand Up @@ -687,12 +687,6 @@ $r = runperl(
);
is( $r, "Hello, world!\n", "-E say" );


$r = runperl(
switches => [ '-E', '"no warnings q{experimental::smartmatch}; undef ~~ undef and say q(Hello, world!)"']
);
is( $r, "Hello, world!\n", "-E ~~" );

$r = runperl(
switches => [ '-nE', q("} END { say q/affe/") ],
stdin => 'zomtek',
Expand Down

0 comments on commit 6fee893

Please sign in to comment.