diff options
Diffstat (limited to 'tests/resolve_deps.basic.sh')
-rwxr-xr-x | tests/resolve_deps.basic.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/resolve_deps.basic.sh b/tests/resolve_deps.basic.sh index 3edad56..9281bb4 100755 --- a/tests/resolve_deps.basic.sh +++ b/tests/resolve_deps.basic.sh @@ -1,6 +1,6 @@ # Basic resolve_deps() test # -# Copyright (C) 2014 Patrick "P. J." McDermott +# Copyright (C) 2014 Patrick McDermott # # This file is part of the ProteanOS Development Kit. # @@ -30,14 +30,17 @@ main() local results= local test_results= + plan_ 2 + results='foo bar baz qux quux' test_results="$(resolve_deps "${pkgs}" "${deps}")" - test_diff "${results}" "${test_results}" + is_diff 'resolve_deps' "${results}" "${test_results}" results="$(printf '%s\n' ${results} | sort)" test_results="$(printf '%s\n' $(resolve_deps "${pkgs}" "${deps}") | \ sort)" - test_diff "${results}" "${test_results}" + is_diff 'resolve_deps (split into multiple lines)' \ + "${results}" "${test_results}" return 0 } |