- Timestamp:
- 08/06/09 11:28:55 (3 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
doc/TODO (modified) (1 diff)
-
src/fixtures.erl (modified) (1 diff)
-
src/fixtures_test.erl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/TODO
r87 r88 3 3 Known issues: 4 4 ------------ 5 6 - fixtures:make_tree doesn't like {file, "a", "a"} in tree.7 5 8 6 Check for possible bugs: -
trunk/src/fixtures.erl
r85 r88 44 44 ok. 45 45 46 normalise ([ H | []]) ->47 H;46 normalise ([String]) when is_list (String) -> 47 String; 48 48 normalise ([H | T]) when is_list (H) -> 49 49 %% Inserts newlines when list of strings... 50 50 normalise ([string: concat (H, string: concat ("\n", hd (T))) | tl (T)]); 51 normalise ([String]) when is_list (String) ->52 String;53 51 normalise (String) when is_list (String) -> 54 52 String. -
trunk/src/fixtures_test.erl
r47 r88 12 12 -export ([use_tree_destroys_tree_even_if_trapexit/0]). 13 13 -export ([use_tree_destroys_tree_even_if_killed_by_parent_link/0]). 14 -export ([make_tree_accepts_single_character_content/0]). 14 15 15 16 temporary_pathname () -> … … 55 56 pass. 56 57 58 make_tree_accepts_single_character_content () -> 59 Tmp_dirname = fixtures: temporary_pathname(), 60 Tree = [{file, "myfile", "a"}], 61 ok = fixtures: make_tree (Tmp_dirname, Tree), 62 {ok, B} = file: read_file (filename: join (Tmp_dirname, "myfile")), 63 "a" = binary_to_list (B), 64 fixtures: delete_tree (Tmp_dirname), 65 pass. 66 57 67 use_tree_passes_a_tree_to_a_fun () -> 58 68 Tmp = fixtures: temporary_pathname (),
Note: See TracChangeset
for help on using the changeset viewer.
