diff --git a/test/intersect/new_test-intersect.sh b/test/intersect/new_test-intersect.sh index 21636abd8eeb1196986ef51a64d995df917def5a..4900d4248d48496241d2ab75a4269c02672603e0 100755 --- a/test/intersect/new_test-intersect.sh +++ b/test/intersect/new_test-intersect.sh @@ -595,6 +595,15 @@ check obs exp rm obs exp dummy.txt +########################################################### +# Test that we throw an error for unrecognized arguments +############################################################ +echo " intersect.new.t52...\c" +echo "ERROR. Unrecognized argument: -wrongArg" > exp +$BT intersect -a a.bed -b b.bed -wrongArg 2>&1 > /dev/null | head -2 | tail -1 > obs +check obs exp +rm obs exp +