| 40 | } |
| 41 | |
| 42 | bool Sequence::test(){ |
| 43 | Sequence s(new string("AAAATTTTCCCCGGGG")); |
| 44 | Sequence rc = ~s; |
| 45 | if (*(s.mStr) != "AAAATTTTCCCCGGGG" ){ |
| 46 | cerr << "Failed in reverseComplement() expect AAAATTTTCCCCGGGG, but get "<< *(s.mStr); |
| 47 | return false; |
| 48 | } |
| 49 | if (*(rc.mStr) != "CCCCGGGGAAAATTTT" ){ |
| 50 | cerr << "Failed in reverseComplement() expect CCCCGGGGAAAATTTT, but get "<< *(rc.mStr); |
| 51 | return false; |
| 52 | } |
| 53 | return true; |
| 54 | } |
nothing calls this directly
no outgoing calls
no test coverage detected