diff options
author | Viacheslav V. Kovalev <kovyl2404@gmail.com> | 2015-04-22 14:44:45 +0300 |
---|---|---|
committer | Viacheslav V. Kovalev <kovyl2404@gmail.com> | 2015-04-22 14:44:45 +0300 |
commit | 0b682e364da25287aa45784150702013f4c4aee0 (patch) | |
tree | a8de73ae7fccc5e6d1eddb93a39b88812cd92c97 /test/rebar_utils_SUITE.erl | |
parent | b725711d638bef39aa6a2685c3dabd57c80a8024 (diff) | |
parent | 82b0d4b7b29fe5d33148022be28eab55320f47a9 (diff) |
Merge branch 'app-discover-profile-duplication' of https://github.com/kovyl2404/rebar3 into app-discover-profile-duplication
Conflicts:
test/rebar_profiles_SUITE.erl
Diffstat (limited to 'test/rebar_utils_SUITE.erl')
-rw-r--r-- | test/rebar_utils_SUITE.erl | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/test/rebar_utils_SUITE.erl b/test/rebar_utils_SUITE.erl index e9b32e2..98e7e58 100644 --- a/test/rebar_utils_SUITE.erl +++ b/test/rebar_utils_SUITE.erl @@ -21,7 +21,8 @@ task_with_flag_with_trailing_comma/1, task_with_flag_with_commas/1, task_with_multiple_flags/1, - special_task_do/1]). + special_task_do/1, + tup_umerge_deduplication/1]). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). @@ -29,7 +30,9 @@ all() -> - [{group, args_to_tasks}]. + [{group, args_to_tasks}, + tup_umerge_deduplication + ]. groups() -> [{args_to_tasks, [], [empty_arglist, @@ -118,3 +121,11 @@ special_task_do(_Config) -> "do", "bar,", "baz"]). + +tup_umerge_deduplication(_Config) -> + Old = [{key,c},{key,b},{key,a}], + New = [{key, a}], + ?assertEqual( + [{key, a}, {key, c}, {key, b}], + rebar_utils:tup_umerge(New, Old) + ). |