Changeset 6095

Show
Ignore:
Timestamp:
08/07/05 00:54:06 (3 years ago)
Author:
putter
Message:

Undisabled a number of rules tests. Moved t_disabled/rules/from_perl6_rules/temp_moved_here_because_pge_doesnt_work_atm/ back to t/rules/from_perl6_rules/, and modified the tests to all be well behaved with parrot-0.2.3.

Location:
t/rules/from_perl6_rules
Files:
5 modified
1 moved

Legend:

Unmodified
Added
Removed
  • t/rules/from_perl6_rules/array_cap.t

    r5627 r6095  
    4040# ok("abcxyd" ~~ m/a  @GA:=(.(.))+  d/, 'Global array capture'); 
    4141is("@GA[]", "c y", 'Global array captured'); 
    42 ok(%$/.keys == 0, 'No vestigal captures'); 
     42ok(%$/.keys == 0, 'No vestigal captures', :todo<bug> ); 
    4343 
    4444my @foo; 
     
    5656  is $ret, "bc", 'Implicit hypothetical variable captured -- retval is correct'; 
    5757} 
    58 ok(! @{$/<foo>}, 'Explicit hypothetical variable not captured'); 
     58ok(! @{$/<foo>}, 'Explicit hypothetical variable not captured', :todo<bug>); 
    5959 
    6060fail "Test hangs", :todo<bug>; 
  • t/rules/from_perl6_rules/capture.t

    r5627 r6095  
    2222rule dotdot { (.)(.) }; 
    2323 
    24 fail "Test hangs", :todo<bug>; 
    25 # ok("zzzabcdefzzz" ~~ m/(a.)<?dotdot>(..)/, 'Match'); 
     24ok("zzzabcdefzzz" ~~ m/(a.)<?dotdot>(..)/, 'Match'); 
    2625ok($/, 'Matched'); 
    2726is($/, "abcdef", 'Captured'); 
  • t/rules/from_perl6_rules/der_grammar.t

    r5626 r6095  
    6565# Test rederivation and polymorphism... 
    6666 
    67 ok('abc' ~~ m/^ (<Yet::Another.abc>) $/, '<Yet::Another.abc>', :todo<feature>); 
     67fail("FIXME parsefail", :todo); 
     68#ok(eval(q{'abc' ~~ m/^ (<Yet::Another.abc>) $/ }), '<Yet::Another.abc>', :todo<feature>); 
    6869is($/, "abc", 'abc $/', :todo<feature>); 
    6970is($0, "abc", 'abc $0', :todo<feature>); 
    7071 
    71 ok(!( 'abc' ~~ m/ (<Yet::Another.bee>) / ), 'abc <Yet::Another.bee>'); 
    72 ok('aBc' ~~ m/ (<Yet::Another.bee>) /, 'aBc <Yet::Another.bee>', :todo<feature>); 
     72fail("FIXME parsefail", :todo); 
     73#ok(eval(q{!( 'abc' ~~ m/ (<Yet::Another.bee>) / ) }), 'abc <Yet::Another.bee>'); 
     74fail("FIXME parsefail", :todo); 
     75#ok(eval(q{'aBc' ~~ m/ (<Yet::Another.bee>) / }), 'aBc <Yet::Another.bee>', :todo<feature>); 
    7376is($/, "B", 'Yet::Another::bee $/', :todo<feature>); 
    7477is($0, "B", 'Yet::Another::bee $0', :todo<feature>); 
    7578 
    76 ok(!( 'def' ~~ m/^ (<Yet::Another.def>) $/ ), 'def (<Yet::Another.def>)'); 
    77 ok('DeF' ~~ m/^ (<Yet::Another.def>) $/, 'DeF (<Yet::Another.def>)', :todo<feature>); 
     79fail("FIXME parsefail", :todo); 
     80#ok(eval(q{!( 'def' ~~ m/^ (<Yet::Another.def>) $/ ) }), 'def (<Yet::Another.def>)'); 
     81fail("FIXME parsefail", :todo); 
     82#ok(eval(q{'DeF' ~~ m/^ (<Yet::Another.def>) $/ }), 'DeF (<Yet::Another.def>)', :todo<feature>); 
    7883is($/, "DeF", 'DeF $/', :todo<feature>); 
    7984is($0, "DeF", 'DeF $0', :todo<feature>); 
    8085 
    81 ok('DeF' ~~ m/^ <?Yet::Another.def> $/, '<?Yet::Another.def>', :todo<feature>); 
     86fail("FIXME parsefail", :todo); 
     87#ok('DeF' ~~ m/^ <?Yet::Another.def> $/, '<?Yet::Another.def>', :todo<feature>); 
    8288is($/, "DeF", '?Yet::Another.def $/', :todo<feature>); 
    8389ok($0 ne "DeF", '?Yet::Another.def $0'); 
     
    8894# Non-existent rules... 
    8995 
    90 ok(!eval(q{ 'abc' ~~ m/ (<Another.sea>) / }), '<Another.sea>'); 
     96fail("FIXME parsefail", :todo); 
     97#ok(!eval(q{ 'abc' ~~ m/ (<Another.sea>) /  }), '<Another.sea>'); 
    9198ok($!, 'Error', :todo<feature>); 
    9299 
  • t/rules/from_perl6_rules/named_cap.t

    r3375 r6095  
    4242is($foo, "bc", 'Explicit package variable captured', :todo<feature> ); 
    4343 
    44 ok("a cat_O_9_tails" ~~ m:w/<alpha> <ident>/, 'Standard captures', :todo<feature> ); 
    45 is($/<alpha>, "a", 'Captured <?alpha>', :todo<feature> ); 
    46 is($/<ident>, "cat_O_9_tails", 'Captured <?ident>', :todo<feature> ); 
     44ok("a cat_O_9_tails" ~~ m:w/<alpha> <ident>/, 'Standard captures' ); 
     45is($/<alpha>, "a", 'Captured <?alpha>' ); 
     46is($/<ident>, "cat_O_9_tails", 'Captured <?ident>' ); 
    4747 
    48 ok("Jon Lee" ~~ m:w/$<first>:=(<ident>) $<family>:=[<ident>]/, 'Repeated standard captures', :todo<feature> ); 
    49 is($/<first>,  "Jon", 'Captured $first', :todo<feature> ); 
    50 is($/<family>, "Lee", 'Captured $family', :todo<feature> ); 
    51 is($/<ident>,  "Lee", 'Captured <?ident>', :todo<feature> ); 
     48ok("Jon Lee" ~~ m:w/$<first>:=(<ident>) $<family>:=[<ident>]/, 'Repeated standard captures' ); 
     49is($/<first>,  "Jon", 'Captured $first' ); 
     50is($/<family>, "Lee", 'Captured $family' ); 
     51is($/<ident>,  "Lee", 'Captured <?ident>' ); 
    5252 
    53 ok("foo => 22" ~~ m:w/$0:=(foo) =\> (\d+) | $1:=(\d+) \<= $0:=(foo) /, 'Pair match', :todo<feature> ); 
    54 is($0, 'foo', 'Key match', :todo<feature> ); 
    55 is($1, '22', 'Value match', :todo<feature> ); 
     53ok("foo => 22" ~~ m:w/$0:=(foo) =\> (\d+) | $1:=(\d+) \<= $0:=(foo) /, 'Pair match' ); 
     54is($0, 'foo', 'Key match' ); 
     55is($1, '22', 'Value match' ); 
    5656 
    5757ok("22 <= foo" ~~ m:w/$0:=(foo) =\> (\d+) | $1:=(\d+) \<= $0:=(foo) /, 'Pair match', :todo<feature> ); 
  • t/rules/from_perl6_rules/word.t

    r3319 r6095  
    2222ok(!( "abc  def" ~~ m/abc  def/ ), 'Literal space nonmatch' ); 
    2323ok(   "abcdef"   ~~ m/abc  def/, 'Nonspace match' ); 
    24 ok(   "abc  def" ~~ m:w/abc  def/, 'Word space match', :todo<feature> ); 
    25 ok(   "abc\ndef" ~~ m:words/abc  def/, 'Word newline match', :todo<feature> ); 
    26 ok(!( "abcdef"   ~~ m:words/abc  def/ ), 'Word nonspace nonmatch', :todo<feature> ); 
    27 ok(!( "abc  def" ~~ m:words/abc <?sp> def/ ), 'Word explicit space non-match' ); 
    28 ok(   "abc  def" ~~ m:words/abc <?ws> def/, 'Word explicit space match', :todo<feature> ); 
     24ok(   "abc  def" ~~ m:w/abc  def/, 'Word space match' ); 
     25ok(   "abc\ndef" ~~ m:words/abc  def/, 'Word newline match' ); 
     26ok(!( "abcdef"   ~~ m:words/abc  def/ ), 'Word nonspace nonmatch' ); 
     27ok(!( "abc  def" ~~ m:words/abc <?sp> def/ ), 'Word explicit space non-match', :todo<bug> ); 
     28ok(   "abc  def" ~~ m:words/abc <?ws> def/, 'Word explicit space match', :todo<bug> ); 
    2929 
    3030}