Changeset 24130

Show
Ignore:
Timestamp:
12/01/08 23:06:01 (5 weeks ago)
Author:
moritz
Message:

[t/spec] test for subset type with `where /regex/', RT #60976

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • t/spec/S12-subset/subtypes.t

    r23084 r24130  
    33use Test; 
    44 
    5 plan 19; 
     5plan 21; 
    66 
    77=begin description 
     
    8080} 
    8181 
     82# Rakudo had a bug where 'where /regex/' failed 
     83# http://rt.perl.org/rt3/Ticket/Display.html?id=60976 
     84#?rakudo skip 'RT #60976' 
     85#?DOES 2 
     86{ 
     87    subset HasA of Str where /a/; 
     88    lives_ok { my HasA $x = 'bla' },   'where /regex/ works (positive)'; 
     89    eval_dies_ok 'my HasA $x = "foo"', 'where /regex/ works (negative)'; 
     90} 
     91 
     92 
     93# vim: ft=perl6