| 51 | } |
| 52 | |
| 53 | void test() { |
| 54 | make_sure_ok("GATAGACA"); |
| 55 | make_sure_ok(""); |
| 56 | make_sure_ok("A"); |
| 57 | make_sure_ok("AA"); |
| 58 | make_sure_ok("AAA"); |
| 59 | make_sure_ok("AAAA"); |
| 60 | make_sure_ok("AAAAA"); |
| 61 | make_sure_ok("AAAAAA"); |
| 62 | make_sure_ok("AAAAAAA"); |
| 63 | make_sure_ok("AAAAAAAA"); |
| 64 | make_sure_ok("B"); |
| 65 | make_sure_ok("BA"); |
| 66 | make_sure_ok("BAA"); |
| 67 | make_sure_ok("BAAA"); |
| 68 | make_sure_ok("BAAAA"); |
| 69 | make_sure_ok("BAAAAA"); |
| 70 | make_sure_ok("BAAAAAA"); |
| 71 | make_sure_ok("BAAAAAAA"); |
| 72 | make_sure_ok("BAAAAAAAA"); |
| 73 | make_sure_ok("AB"); |
| 74 | make_sure_ok("AAB"); |
| 75 | make_sure_ok("AAAB"); |
| 76 | make_sure_ok("AAAAB"); |
| 77 | make_sure_ok("AAAAAB"); |
| 78 | make_sure_ok("AAAAAAB"); |
| 79 | make_sure_ok("AAAAAAAB"); |
| 80 | make_sure_ok("AAAAAAAAB"); |
| 81 | make_sure_ok("AB"); |
| 82 | make_sure_ok("ABA"); |
| 83 | make_sure_ok("ABAA"); |
| 84 | make_sure_ok("ABAAA"); |
| 85 | make_sure_ok("ABAAAA"); |
| 86 | make_sure_ok("ABAAAAA"); |
| 87 | make_sure_ok("ABAAAAAA"); |
| 88 | make_sure_ok("ABAAAAAAA"); |
| 89 | |
| 90 | for (int i = 0; i < 10000; i++) { |
| 91 | int len = rng() % 1000; |
| 92 | stringstream ss; |
| 93 | for (int j = 0; j < len; j++) { |
| 94 | ss << static_cast<char>('A' + (rng() % 26)); |
| 95 | } |
| 96 | |
| 97 | string s = ss.str(); |
| 98 | // cout << s << endl; |
| 99 | make_sure_ok(s); |
| 100 | } |
| 101 | } |
| 102 | // vim: cc=60 ts=2 sts=2 sw=2: |
nothing calls this directly
no test coverage detected