]> git.donarmstrong.com Git - biopieces.git/blobdiff - code_c/Maasha/src/test/test_seq.c
read_solexa now handles both decimal and octal scores
[biopieces.git] / code_c / Maasha / src / test / test_seq.c
index db6d7bbf120d35a4526dfcef64b90f08fabb1238..11d6a5d2b9a56de7d7e21627b619b3f4f76631f8 100644 (file)
@@ -1,7 +1,9 @@
 #include "common.h"
+#include "mem.h"
 #include "seq.h"
 
 static void test_seq_new();
+static void test_seq_uppercase();
 static void test_seq_destroy();
 
 
@@ -10,6 +12,7 @@ int main()
     fprintf( stderr, "Running all tests for seq.c\n" );
 
     test_seq_new();
+    test_seq_uppercase();
     test_seq_destroy();
 
     fprintf( stderr, "Done\n\n" );
@@ -38,6 +41,20 @@ void test_seq_new()
 }
 
 
+void test_seq_uppercase()
+{
+    fprintf( stderr, "   Testing seq_uppercase ... " );
+
+    char   seq[] = "atcg";
+
+    seq_uppercase( seq );
+
+    assert( strcmp( seq, "ATCG" ) == 0 );
+
+    fprintf( stderr, "OK\n" );
+}
+
+
 void test_seq_destroy()
 {
     fprintf( stderr, "   Testing seq_destroy ... " );