Changeset 22135 for v6

Show
Ignore:
Timestamp:
09/04/08 02:34:55 (3 months ago)
Author:
ruoso
Message:

[smop] updating test/30_array_map to reflect the fact that "map" receives and returns an iterator

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • v6/smop/test/30_array_map.m0ld

    r22114 r22135  
    3838    my $continuation = $interpreter."continuation"(); 
    3939    my $back = $continuation."back"(); 
     40    $back.setr($void); 
    4041    $void = $interpreter."goto"($back); 
    4142})); 
    4243 
    43 my $mapret = $array."map"($code1); 
     44my $iterator = $array."Iterator"(); 
     45 
     46my $otheriterator = ¢SMOP__S1P__map."map"($code1, $iterator); 
    4447 
    4548$void = $out."print"("ok 1 - map is lazy\n"); 
    4649 
    47 $void = $mapret."Void"(); 
     50$void = $otheriterator."Void"(); 
    4851 
    4952$void = $out."print"("ok 6 - map in void context is evaluated eagerly\n");