Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void shouldConfirmMatchTest(){
- Map<Character, Set<String>> testInput = new TreeMap<Character, Set<String>>()
- {{put('a', new TreeSet<>(Arrays.asList("ala", "javie", "kota", "ma")));
- put('d', new TreeSet<>(Arrays.asList("koduje")));
- put('e', new TreeSet<>(Arrays.asList("javie", "koduje")));
- put('i', new TreeSet<>(Arrays.asList("javie")));
- put('j', new TreeSet<>(Arrays.asList("javie", "koduje")));
- put('k', new TreeSet<>(Arrays.asList("koduje", "kot", "kota")));
- put('l', new TreeSet<>(Arrays.asList("ala")));
- put('m', new TreeSet<>(Arrays.asList("ma")));
- put('o', new TreeSet<>(Arrays.asList("koduje", "kot", "kota")));
- put('t', new TreeSet<>(Arrays.asList("kot", "kota")));
- put('u', new TreeSet<>(Arrays.asList("koduje")));
- put('v', new TreeSet<>(Arrays.asList("javie")));
- put('w', new TreeSet<>(Arrays.asList("w")));
- }};
- assertEquals(testInput, Main.something("ala ma kota, kot koduje w Javie kota"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement