diff options
Diffstat (limited to 'test/test-compare-versions.sh')
-rwxr-xr-x | test/test-compare-versions.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/test-compare-versions.sh b/test/test-compare-versions.sh index 6cfcc158e6..c40208be60 100755 --- a/test/test-compare-versions.sh +++ b/test/test-compare-versions.sh @@ -17,9 +17,10 @@ $ANALYZE compare-versions 1 '!=' 2 ( ! $ANALYZE compare-versions 1 gt 2 ) ( ! $ANALYZE compare-versions 1 '>' 2 ) -$ANALYZE compare-versions 1 2 | grep ' < ' -$ANALYZE compare-versions 2 2 | grep ' == ' -$ANALYZE compare-versions 2 1 | grep ' > ' +test "$($ANALYZE compare-versions 1 2)" = '1 < 2' +test "$($ANALYZE compare-versions 2 2)" = '2 == 2' +test "$($ANALYZE compare-versions 2 1)" = '2 > 1' +test "$($ANALYZE compare-versions '' '')" = "'' == ''" set +e |