Fix whitespace errors in unit tests

This commit is contained in:
Tuncer Ayaz 2011-08-05 01:51:41 +02:00
parent fe75f8efce
commit 5f2930b701
2 changed files with 19 additions and 17 deletions

View file

@ -135,7 +135,8 @@ basic_setup_test_() ->
assert_dirs_in("Basic Project", assert_dirs_in("Basic Project",
["src", "ebin", "test"]) ++ ["src", "ebin", "test"]) ++
assert_files_in("Basic Project", assert_files_in("Basic Project",
["test/myapp_mymod_tests.erl", "src/myapp_mymod.erl"])}. ["test/myapp_mymod_tests.erl",
"src/myapp_mymod.erl"])}.
%% ==================================================================== %% ====================================================================
%% Setup and Teardown %% Setup and Teardown
@ -227,7 +228,7 @@ rebar() ->
rebar(Args) when is_list(Args) -> rebar(Args) when is_list(Args) ->
Out = os:cmd(filename:nativename("./rebar") ++ " " ++ Args), Out = os:cmd(filename:nativename("./rebar") ++ " " ++ Args),
%?debugMsg("**** Begin"), ?debugMsg(Out), ?debugMsg("**** End"), %% ?debugMsg("**** Begin"), ?debugMsg(Out), ?debugMsg("**** End"),
Out. Out.
assert_dirs_in(Name, [Dir|T]) -> assert_dirs_in(Name, [Dir|T]) ->
@ -241,8 +242,8 @@ assert_files_in(Name, [File|T]) ->
assert_files_in(_, []) -> []. assert_files_in(_, []) -> [].
assert_files_not_in(Name, [File|T]) -> assert_files_not_in(Name, [File|T]) ->
[{Name ++ " does not have file: " ++ File, ?_assertNot(filelib:is_regular(File))} | [{Name ++ " does not have file: " ++ File,
assert_files_not_in(Name, T)]; ?_assertNot(filelib:is_regular(File))} | assert_files_not_in(Name, T)];
assert_files_not_in(_, []) -> []. assert_files_not_in(_, []) -> [].
assert_full_coverage(Mod) -> assert_full_coverage(Mod) ->

View file

@ -225,7 +225,8 @@ mv_file_test_() ->
end, end,
fun teardown/1, fun teardown/1,
[?_assert(filelib:is_regular(filename:join([?TMP_DIR,"dest","file1"]))), [?_assert(filelib:is_regular(filename:join([?TMP_DIR,"dest","file1"]))),
?_assertNot(filelib:is_regular(filename:join([?TMP_DIR,"source","file1"])))]}. ?_assertNot(filelib:is_regular(
filename:join([?TMP_DIR,"source","file1"])))]}.
%% ==================================================================== %% ====================================================================
%% Utilities %% Utilities