diff --git a/README.md b/README.md index 6284724..eb70f47 100644 --- a/README.md +++ b/README.md @@ -679,6 +679,8 @@ allows us to effectively remove array duplicates. **CAVEAT:** Requires `bash` 4+ +**CAVEAT:** List order may not stay the same. + **Example Function:** ```sh diff --git a/test.sh b/test.sh index 252e365..57205b2 100755 --- a/test.sh +++ b/test.sh @@ -75,11 +75,6 @@ test_reverse_array() { shopt -u compat44 } -test_remove_array_dups() { - IFS=$'\n' read -d "" -ra result < <(remove_array_dups 1 1 2 2 3 3 4 5) - assert_equals "${result[*]}" "1 2 3 4 5" -} - test_cycle() { # shellcheck disable=2034 arr=(a b c d)