diff options
author | Phil Sutter <phil@nwl.cc> | 2018-10-22 15:45:09 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-10-22 21:45:32 +0200 |
commit | 6e7aea790124495a49b989c508e2ca4d79c82459 (patch) | |
tree | d713fc4379c0c0cf56db791771e2a3f468211f1c | |
parent | 82dac4fd156d541ec4e72331d628549cba874eeb (diff) |
tests: shell: Extend get element test
Despite the recent fixes, the test still fails. While trying to address
the remaining issues, I found more potentially problematic inputs so
extend the test by those.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rwxr-xr-x | tests/shell/testcases/sets/0034get_element_0 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/shell/testcases/sets/0034get_element_0 b/tests/shell/testcases/sets/0034get_element_0 index 2bfb527b..c7e7298a 100755 --- a/tests/shell/testcases/sets/0034get_element_0 +++ b/tests/shell/testcases/sets/0034get_element_0 @@ -27,10 +27,17 @@ check 15-18 "" # multiple single elements, ranges smaller than present check "10, 40" "10, 40" +check "22-24, 26-28" "20-30, 20-30" check 21-29 20-30 +# mixed single elements and ranges +check "10, 20" "10, 20-30" +check "10, 22" "10, 20-30" +check "10, 22-24" "10, 20-30" + # non-existing ranges matching elements check 10-40 "" +check 10-20 "" check 10-25 "" check 25-55 "" |