Changeset 72


Ignore:
Timestamp:
07/15/09 09:35:46 (3 years ago)
Author:
dom
Message:

Refactoring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tests.erl

    r35 r72  
    1 %%% Copyright (c) 2008 Dominic Williams, Nicolas Charpentier 
     1%%% Copyright (c) Dominic Williams, Nicolas Charpentier 
    22%%% All rights reserved. 
    33%%% See file COPYING. 
    44 
    55-module (tests). 
    6 -export ([filter_by_attribute/1, receive_all/0]). 
     6-export ([filter_by_attribute/1]). 
    77 
    88filter_by_attribute (Binary) -> 
     
    2626testable_export ({F, 0}, Fs) -> [F | Fs]; 
    2727testable_export (_, Fs) -> Fs. 
    28  
    29 receive_all () -> 
    30     receive_all ([]). 
    31  
    32 receive_all (Ms) -> 
    33     receive M -> receive_all ([M | Ms]) 
    34     after 10000 -> lists: reverse (Ms) 
    35     end. 
Note: See TracChangeset for help on using the changeset viewer.