Changeset 35
- Timestamp:
- 08/22/08 19:01:40 (3 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
r34 r35 18 18 Tests = lists: foldl (fun testable_export/2, [], Exports), 19 19 filter (Binary, Tail, [Tests | Acc]); 20 filter (Binary, [Test | Tail], Acc) -> 21 filter (Binary, Tail, [Test | Acc]); 20 22 filter (_, [], Acc) -> 21 23 lists: flatten (Acc). -
trunk/src/tests_test.erl
r34 r35 8 8 9 9 filter_by_attribute () -> 10 filtering_non_tests_returns_empty_list(), 11 filtering_tests_returns_list_of_tests_from_unloaded_binary (), 10 non_tests_returns_empty_list(), 11 test_exports_returns_list_of_tests_from_unloaded_binary (), 12 test_non_exports_also (), 12 13 ok. 13 14 14 filtering_non_tests_returns_empty_list () ->15 non_tests_returns_empty_list () -> 15 16 Binary = modules: to_binary ("../fix/eg_code.erl"), 16 17 {eg_code, []} = tests: filter_by_attribute (Binary). 17 18 18 filtering_tests_returns_list_of_tests_from_unloaded_binary () ->19 test_exports_returns_list_of_tests_from_unloaded_binary () -> 19 20 File = "../fix/eg_test.erl", 20 21 Binary = modules: to_binary (File), … … 22 23 {eg_test, [ok, nok]} = tests: filter_by_attribute (Binary), 23 24 false = code: is_loaded (eg_test). 25 26 test_non_exports_also () -> 27 File = "../fix/eg_test_not_exports.erl", 28 Binary = modules: to_binary (File), 29 false = code: is_loaded (eg_test_not_exports), 30 {eg_test_not_exports, [ok]} = tests: filter_by_attribute (Binary), 31 false = code: is_loaded (eg_test_not_exports).
Note: See TracChangeset
for help on using the changeset viewer.
