X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/f839e6a78ff81930c00f8b4509d95e4a3d242e58..1a2ef2eed6ab723cbf2280c01cb6e1a0500d4001:/test/pick/test-pick diff --git a/test/pick/test-pick b/test/pick/test-pick index 4eff47cb..6ec67d92 100755 --- a/test/pick/test-pick +++ b/test/pick/test-pick @@ -49,6 +49,12 @@ run_test 'pick -not -subject message.8 last:5' '7 10 11' +# Test -reverse. +run_test 'pick -reverse -not -subject message.8 last:5' '11 +10 +9 +7' + # Test -lbrace, -rbrace. run_test 'pick -subject message.12 -and -subject message.3 -or -from Test4' '4' run_test 'pick -subject message.12 -and -lbrace -subject message.3 -rbrace' \ @@ -76,10 +82,9 @@ run_test 'pick -not -lbrace -subject NoMatch -and -subject message.3 -rbrace' \ 10 11' -# Test MHPDEBUG. -# Don't use run_prog here because it loses the environment setting. -MHPDEBUG=1 pick -not -lbrace -subject NoMatch -and -subject message.3 -rbrace \ - >/dev/null 2>"$actual" +# Test -debug. +run_prog pick -debug -not -lbrace -subject NoMatch -and -subject message.3 \ + -rbrace >/dev/null 2>"$actual" cat >"$expected" <"$expected" set +e -require_locale en_US.utf-8 en_US.utf8 +require_locale en_US.UTF-8 en_US.UTF8 en_US.utf-8 en_US.utf8 # Don't use run_prog here because it loses the environment setting. -LC_ALL=en_US.UTF-8 pick -subject foobar 13 >"$actual" 2>&1 +pick -subject foobar 13 >"$actual" 2>&1 set -e check "$expected" "$actual"