(String srcStr, int iterations, String result)
| 9 | } |
| 10 | |
| 11 | private static void verify(String srcStr, int iterations, String result) { |
| 12 | int expectedLength = srcStr.length() * iterations; |
| 13 | if (result.length() != expectedLength) { |
| 14 | throw new IllegalStateException("Incorrect length: " + result.length() + " vs " + expectedLength); |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | private static void verify(String expected, String actual) { |
| 19 | if (! expected.equals(actual)) { |
no test coverage detected