Skip to content

Instantly share code, notes, and snippets.

@JoaoGFarias
Last active November 7, 2019 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoaoGFarias/f2b4e737a9f5ae7ca6b5bc268f3cb43f to your computer and use it in GitHub Desktop.
Save JoaoGFarias/f2b4e737a9f5ae7ca6b5bc268f3cb43f to your computer and use it in GitHub Desktop.
Palindrome TDD
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