Skip to content

Commit

Permalink
new testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
geniuszhaoyi committed Oct 25, 2014
1 parent 8ca7a85 commit b261ef6
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions server/b/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,28 +67,28 @@ basic:

exception:
# exception test, no NC_001134-chromosome3 record in Table_sgRNA
echo "--------------test case exception 1 start-----------------"
echo "exception test, call no-exist location"
../main '{"specie":"Saccharomyces-cerevisiae","location":"NC_001134-chromosome3:200..2873","pam":"NGG","rfc":"100010"}'
echo "---------------test case exception 1 end------------------"
#echo "--------------test case exception 1 start-----------------"
#echo "exception test, call no-exist location"
#../main '{"specie":"Saccharomyces-cerevisiae","location":"NC_001134-chromosome2:200000..2873000","pam":"NGG","rfc":"100010"}'
#echo "---------------test case exception 1 end------------------"

echo "--------------test case exception 2 start-----------------"
echo "--------------test case exception 1 start-----------------"
echo "exception test, call no-exist gene"
../main '{"specie":"Saccharomyces-cerevisiae","gene":"XXXXX","pam":"NGG","rfc":"011101"}'
echo "--------------test case exception 2 end -----------------"
! ../main '{"specie":"Saccharomyces-cerevisiae","gene":"XXXXX","pam":"NGG","rfc":"011101"}'
echo "--------------test case exception 1 end -----------------"

#echo "--------------test case exception 3 start-----------------"
#echo "query in illegal rfc combinations"
# here, RFC 10 is incompatible to BioBrick RFC 12 and RFC 23
#! ../main '{"specie":"Saccharomyces-cerevisiae","location":"NC_001134-chromosome2:200..2873","pam":"NGG","rfc":"110010"}'
#echo "--------------test case exception 3 end -----------------"

echo "--------------test case exception 3 start-----------------"
echo "--------------test case exception 2 start-----------------"
echo "exception test, wrong args"
../main '{"specie":"Saccharomyces-cerevisiae","gene":"ATP1","pam":"NGG"}'
echo "---------------test case exception 3 end------------------"
! ../main '{"specie":"Saccharomyces-cerevisiae","gene":"ATP1","pam":"NGG"}'
echo "---------------test case exception 2 end------------------"

echo "--------------test case exception 4 start-----------------"
echo "--------------test case exception 3 start-----------------"
echo "exception test, invalid nt length"
../main '{"specie":"Saccharomyces-cerevisiae","gene":"ATP1","pam":"NGG","rfc":"011101,"length":16}'
echo "---------------test case exception 4 end------------------"
! ../main '{"specie":"Saccharomyces-cerevisiae","gene":"ATP1","pam":"NGG","rfc":"011101,"length":16}'
echo "---------------test case exception 3 end------------------"

0 comments on commit b261ef6

Please sign in to comment.