Cannot accept an arrayref to pos_validated_list, since this can be confused with...
[gitmo/MooseX-Params-Validate.git] / t / 012_ref_as_first_param.t
index e934395..95c76c0 100644 (file)
@@ -28,16 +28,6 @@ use Test::Fatal;
 
         return \%p;
     }
-
-    sub baz {
-        my ( $x, $y ) = pos_validated_list(
-            \@_,
-            { isa => 'Any' },
-            { isa => 'Any' },
-        );
-
-        return { x => $x, y => $y };
-    }
 }
 
 is_deeply(
@@ -64,16 +54,4 @@ is_deeply(
     'validated_hash accepts a hash reference'
 );
 
-is_deeply(
-    baz( 42, 84 ),
-    { x => 42, y => 84 },
-    'pos_validated_list accepts a plain array'
-);
-
-is_deeply(
-    baz( [42, 84] ),
-    { x => 42, y => 84 },
-    'pos_validated_list accepts a array reference'
-);
-
 done_testing();