#include "common.h"
+#include "mem.h"
#include "seq.h"
static void test_seq_new();
+static void test_seq_uppercase();
static void test_seq_destroy();
fprintf( stderr, "Running all tests for seq.c\n" );
test_seq_new();
+ test_seq_uppercase();
test_seq_destroy();
fprintf( stderr, "Done\n\n" );
}
+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 ... " );