about summary refs log tree commit diff
path: root/t/3000-magrep.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/3000-magrep.t
parent08ea54953ffdac34e60b2d93b0777324413f737d (diff)
downloadmblaze-b960d5e3cc1abd1849ef6c0019f16ab7dd77e52a.tar.gz
mblaze-b960d5e3cc1abd1849ef6c0019f16ab7dd77e52a.tar.xz
mblaze-b960d5e3cc1abd1849ef6c0019f16ab7dd77e52a.zip
t: add check_test
Diffstat (limited to 't/3000-magrep.t')
-rw-r--r--t/3000-magrep.t10
1 files changed, 5 insertions, 5 deletions
diff --git a/t/3000-magrep.t b/t/3000-magrep.t
index 4113f50..d25a97b 100644
--- a/t/3000-magrep.t
+++ b/t/3000-magrep.t
@@ -46,11 +46,11 @@ inbox/cur/3:2,
 
 export MAILSEQ=seq
 
-check 'subject' 'magrep subject:nice | wc -l | grep -qx 1'
-check 'ignorecase' 'magrep -i subject:NICE | wc -l | grep -qx 1'
-check 'invert' 'magrep -v subject:nice | wc -l | grep -qx 2'
-check 'max matches' 'magrep -m 2 from:Piet | wc -l | grep -qx 2'
-check 'long subject' 'magrep subject:aliqua | wc -l | grep -qx 1'
+check_test 'subject' -eq 1 'magrep subject:nice | wc -l'
+check_test 'ignorecase' -eq 1 'magrep -i subject:NICE | wc -l'
+check_test 'invert' -eq 2 'magrep -v subject:nice | wc -l'
+check_test 'max matches' -eq 2 'magrep -m 2 from:Piet | wc -l'
+check_test 'long subject' -eq 1 'magrep subject:aliqua | wc -l'
 
 echo 'inbox/cur/1:2,: subject: wow nice subject' >expect
 check_same 'print' 'magrep -p subject:nice' 'cat expect'