BaseUtilitiesTest.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include "BaseUtilitiesTest.h"
00018 #include <assert.h>
00019 #include <iostream>
00020
00021 int main(int argc, char ** argv)
00022 {
00023 testReverseComplement();
00024 }
00025
00026 void testReverseComplement()
00027 {
00028
00029 std::string testString = "ACGTAACCTTGGG";
00030 std::string expectedReverse = "CCCAAGGTTACGT";
00031
00032 BaseUtilities::reverseComplement(testString);
00033 assert(testString == expectedReverse);
00034
00035
00036 testString = "ACGTAACCTGGG";
00037 expectedReverse = "CCCAGGTTACGT";
00038
00039 BaseUtilities::reverseComplement(testString);
00040 assert(testString == expectedReverse);
00041 }