about summary refs log tree commit diff
path: root/t/2000-mpick.t
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-03-31 16:10:43 +0200
committerDuncaen <mail@duncano.de>2017-03-31 16:10:47 +0200
commitb960d5e3cc1abd1849ef6c0019f16ab7dd77e52a (patch)
tree3215ac0466314d28619bd005908a678d4699d480 /t/2000-mpick.t
parent08ea54953ffdac34e60b2d93b0777324413f737d (diff)
downloadmblaze-b960d5e3cc1abd1849ef6c0019f16ab7dd77e52a.tar.gz
mblaze-b960d5e3cc1abd1849ef6c0019f16ab7dd77e52a.tar.xz
mblaze-b960d5e3cc1abd1849ef6c0019f16ab7dd77e52a.zip
t: add check_test
Diffstat (limited to 't/2000-mpick.t')
-rwxr-xr-xt/2000-mpick.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/2000-mpick.t b/t/2000-mpick.t
index 90dacb8..26735d0 100755
--- a/t/2000-mpick.t
+++ b/t/2000-mpick.t
@@ -61,8 +61,8 @@ Greetings
 !
 
 check 'search subject' 'mlist inbox | mpick /wow | grep -q inbox/cur/9:2,'
-check 'search addr' 'mlist inbox | mpick peter@example.org | wc -l | grep -qx 2'
-check 'search name' 'mlist inbox | mpick "Peter Example" | wc -l | grep -qx 2'
-check 'search spam' 'mlist inbox | mpick -t "trashed && subject =~ \"pdf\"" | wc -l | grep -qx 1'
+check_test 'search addr' -eq 2 'mlist inbox | mpick peter@example.org | wc -l'
+check_test 'search name' -eq 2 'mlist inbox | mpick "Peter Example" | wc -l'
+check_test 'search spam' -eq 1 'mlist inbox | mpick -t "trashed && subject =~ \"pdf\"" | wc -l'
 
 )