From 3b9fc3e1ebc989dc857f053b56ff59ec7e7c8509 Mon Sep 17 00:00:00 2001 From: nkindlon <nek3d@virginia.edu> Date: Mon, 18 Nov 2013 12:43:02 -0500 Subject: [PATCH] Added unit test for unrecognized arguments. --- test/intersect/new_test-intersect.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/intersect/new_test-intersect.sh b/test/intersect/new_test-intersect.sh index 21636abd..4900d424 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 + -- GitLab