Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import junit.framework.TestCase;
- public class SolutionTest extends TestCase {
- public void test() {
- assertEquals(1, Solution.countOptions("a"));
- assertEquals(1, Solution.countOptions("ab"));
- assertEquals(1, Solution.countOptions("abc"));
- assertEquals(1, Solution.countOptions("+a"));
- assertEquals(2, Solution.countOptions("+ab"));
- assertEquals(3, Solution.countOptions("+abc"));
- assertEquals(4, Solution.countOptions("+abcd"));
- assertEquals(5, Solution.countOptions("+abcde"));
- assertEquals(3, Solution.countOptions("abc+abc+"));
- assertEquals(1, Solution.countOptions("++a"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement