t/op/my_stash.t should use test.pl instead of Test.pm
[p5sagit/p5-mst-13.2.git] / t / op / dor.t
index 079631a..602a03c 100644 (file)
@@ -10,7 +10,7 @@ BEGIN {
 package main;
 require './test.pl';
 
-plan( tests => 41 );
+plan( tests => 31 );
 
 my($x);
 
@@ -25,17 +25,6 @@ is($x // 0, '',              '       // : left-hand operand defined but empty');
 
 like([] // 0, qr/^ARRAY/,      '       // : left-hand operand a referece');
 
-$x=1;
-is(($x err 0), 1,      '       err: left-hand operand defined');
-
-$x = undef;
-is(($x err 1), 1,      '       err: left-hand operand undef');
-
-$x='';
-is(($x err 0), '',     '       err: left-hand operand defined but empty');
-
-like(([] err 0), qr/^ARRAY/,   '       err: left-hand operand a referece');
-
 $x=undef;
 $x //= 1;
 is($x, 1,              '       //=: left-hand operand undefined');
@@ -82,15 +71,3 @@ like( $@, qr/^Search pattern not terminated/ );
 is(0 // 2, 0,          '       // : left-hand operand not optimized away');
 is('' // 2, '',                '       // : left-hand operand not optimized away');
 is(undef // 2, 2,      '       // : left-hand operand optimized away');
-
-# [perl #32347] err should be a weak keyword
-
-package weakerr;
-
-sub err { "<@_>" }
-::is( (shift() err 42), 42,    'err as an operator' );
-::is( (shift err 42), 42,      'err as an operator, with ambiguity' );
-::is( (err 2), "<2>",          'err as a function without parens' );
-::is( err(2, 3), "<2 3>",      'err as a function with parens' );
-::is( err(), "<>",             'err as a function without arguments' );
-::is( err, "<>",               'err as a function without parens' );