mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-12-19 07:00:35 +08:00
refactor: refactoring and documenting Isomorphic String Checker (#6359)
refactor: refactoring and documenting Isomorphic String Checker Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
2ccc15671f
commit
3e0fd11a96
@@ -12,8 +12,8 @@ public final class IsomorphicTest {
|
||||
@ParameterizedTest
|
||||
@MethodSource("inputs")
|
||||
public void testCheckStrings(String str1, String str2, Boolean expected) {
|
||||
assertEquals(expected, Isomorphic.checkStrings(str1, str2));
|
||||
assertEquals(expected, Isomorphic.checkStrings(str2, str1));
|
||||
assertEquals(expected, Isomorphic.areIsomorphic(str1, str2));
|
||||
assertEquals(expected, Isomorphic.areIsomorphic(str2, str1));
|
||||
}
|
||||
|
||||
private static Stream<Arguments> inputs() {
|
||||
|
||||
Reference in New Issue
Block a user