- Timestamp:
- 03/03/08 09:32:43 (4 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
-
tests.erl (modified) (1 diff)
-
tests_test.erl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tests.erl
r22 r25 20 20 Funs = [fun (Fix) -> Module:T (Fix) end || T <- Ts], 21 21 filter_by_attribute (Module, Binary, Tail, [{M, F, Funs} | Tests]); 22 filter_by_attribute ( _, _, [], Tests) ->23 lists: flatten (Tests).22 filter_by_attribute (Module, _, [], Tests) -> 23 {Module, lists: flatten (Tests)}. 24 24 25 25 exports_to_funs (M, [{module_info, _} | Exports], Funs) -> -
trunk/src/tests_test.erl
r24 r25 16 16 filtering_non_tests_returns_empty_list () -> 17 17 Binary = modules: to_binary ("../fix/eg_code.erl"), 18 []= tests: filter_by_attribute (Binary).18 {eg_code, []} = tests: filter_by_attribute (Binary). 19 19 20 20 filtering_tests_returns_list_of_funs_from_unloaded_binary () -> … … 45 45 Binary = modules: to_binary (File_name), 46 46 false = code: is_loaded (Module), 47 Tests= tests: filter_by_attribute (Binary),47 {Module, Tests} = tests: filter_by_attribute (Binary), 48 48 try 49 49 {module, Module} = code: load_binary (Module, File_name, Binary),
Note: See TracChangeset
for help on using the changeset viewer.
