- Timestamp:
- 02/22/08 16:58:41 (4 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 edited
-
fix/eg_test_with_and_without_fixture.erl (added)
-
src/tests.erl (modified) (1 diff)
-
src/tests_test.erl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tests.erl
r19 r21 28 28 Fun = fun () -> M: F () end, 29 29 exports_to_funs (M, Exports, [Fun | Funs]); 30 exports_to_funs (M, [{F, 1} | Exports], Funs) -> 31 Fun = fun (Fix) -> M: F (Fix) end, 32 exports_to_funs (M, Exports, [Fun | Funs]); 30 exports_to_funs (M, [{_, _} | Exports], Funs) -> 31 exports_to_funs (M, Exports, Funs); 33 32 exports_to_funs (_, [], Funs) -> 34 33 Funs. -
trunk/src/tests_test.erl
r20 r21 11 11 filtering_tests_returns_list_of_funs_from_unloaded_binary (), 12 12 filtering_fixtured_tests_returns_list_of_fixture_fun_tuples (), 13 filtering_understands_mixed_export_and_fixtured_tests (), 13 14 ok. 14 15 … … 32 33 filtering (File_name, eg_test_with_fixture, Test). 33 34 35 filtering_understands_mixed_export_and_fixtured_tests () -> 36 File_name = "../fix/eg_test_with_and_without_fixture.erl", 37 Test = fun ([{Module, Fixture, With}, Without]) -> 38 {'EXIT', {Reason, _}} = (catch Without ()), 39 {badmatch, without_fixture_ok} = Reason, 40 [ok] = Module: Fixture (With) 41 end, 42 filtering (File_name, eg_test_with_and_without_fixture, Test). 43 34 44 filtering (File_name, Module, Test) -> 35 45 Binary = modules: to_binary (File_name),
Note: See TracChangeset
for help on using the changeset viewer.
