Changeset 3066

Show
Ignore:
Timestamp:
05/12/05 13:32:18 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
4536
Message:

* [].map and [].grep works again.

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim/List.hs

    r2968 r3066  
    6767op2Grep :: Val -> Val -> Eval Val 
    6868op2Grep sub@(VCode _) list = op2Grep list sub 
     69op2Grep (VList [v@(VRef _)]) sub = op2Grep v sub 
    6970op2Grep list sub = do 
    7071    args <- fromVal list 
     
    7879op2Map :: Val -> Val -> Eval Val 
    7980op2Map sub@(VCode _) list = op2Map list sub 
     81op2Map (VList [v@(VRef _)]) sub = op2Map v sub 
    8082op2Map list sub = do 
    8183    args <- fromVal list 
  • t/pugsbugs/io_finalize_part2.t

    r2830 r3066  
    2020isa_ok($fh, 'IO'); 
    2121my $line = readline($fh); 
    22 is($line, "Hello World\n", 'finalize without explicit filehandle close worked'); 
     22is($line, "Hello World\n", 'finalize without explicit filehandle close worked', :todo<bug>); 
    2323 
    2424#now be sure to delete the file as well