]> git.donarmstrong.com Git - biopieces.git/commitdiff
added tests for transliterate_seq
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Sat, 4 Jun 2011 15:56:30 +0000 (15:56 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Sat, 4 Jun 2011 15:56:30 +0000 (15:56 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1455 74ccb610-7750-0410-82ae-013aeee3265d

bp_test/in/transliterate_seq.in [new file with mode: 0644]
bp_test/out/transliterate_seq.out.1 [new file with mode: 0644]
bp_test/out/transliterate_seq.out.2 [new file with mode: 0644]
bp_test/test/test_transliterate_seq [new file with mode: 0755]

diff --git a/bp_test/in/transliterate_seq.in b/bp_test/in/transliterate_seq.in
new file mode 100644 (file)
index 0000000..268184b
--- /dev/null
@@ -0,0 +1,4 @@
+SEQ_NAME: test
+SEQ: TACGATGCTAGCNATCYGACNACTGACTGACN
+SEQ_LEN: 32
+---
diff --git a/bp_test/out/transliterate_seq.out.1 b/bp_test/out/transliterate_seq.out.1
new file mode 100644 (file)
index 0000000..33f001e
--- /dev/null
@@ -0,0 +1,4 @@
+SEQ: TACGATGCTAGCAATCYGACAACTGACTGACA
+SEQ_LEN: 32
+SEQ_NAME: test
+---
diff --git a/bp_test/out/transliterate_seq.out.2 b/bp_test/out/transliterate_seq.out.2
new file mode 100644 (file)
index 0000000..e1c975c
--- /dev/null
@@ -0,0 +1,4 @@
+SEQ: TACGATGCTAGCATCYGACACTGACTGAC
+SEQ_LEN: 29
+SEQ_NAME: test
+---
diff --git a/bp_test/test/test_transliterate_seq b/bp_test/test/test_transliterate_seq
new file mode 100755 (executable)
index 0000000..cfefd1c
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+source "$BP_DIR/bp_test/lib/test.sh"
+
+run "$bp -I $in -s 'N' -r 'A' -O $tmp"
+assert_no_diff $tmp $out.1
+clean
+
+run "$bp -I $in -d 'N' -O $tmp"
+assert_no_diff $tmp $out.2
+clean