Last active
November 7, 2019 12:27
-
-
Save JoaoGFarias/f2b4e737a9f5ae7ca6b5bc268f3cb43f to your computer and use it in GitHub Desktop.
Palindrome TDD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PalindromeCheckerTest | |
{ | |
@Test | |
public void checkTruePalindrome() | |
{ | |
Boolean result = new PalindromeChecker().isPalindrome("abba"); | |
assertEquals("The true palindrome was not detected", result, true); | |
} | |
@Test | |
public void checkNegativePalindrome() | |
{ | |
Boolean result = new PalindromeChecker().isPalindrome("abbae"); | |
assertEquals(result, false); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment