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:
Oleksandr Klymenko
2025-07-11 22:36:29 +03:00
committed by GitHub
parent 2ccc15671f
commit 3e0fd11a96
2 changed files with 33 additions and 14 deletions

View File

@@ -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() {