Fix palindrome unit test
One of the test cases was not as described in the test method name. Also corrected formatting in another test case.
This commit is contained in:
parent
1cf22480b5
commit
1cca64cc70
@ -11,13 +11,13 @@ public class PalindromeUnitTest {
|
||||
@Test
|
||||
public void whenEmptyString_thanAccept() {
|
||||
Palindrome palindromeTester = new Palindrome();
|
||||
assertTrue(palindromeTester.isPalindrome("noon"));
|
||||
assertTrue(palindromeTester.isPalindrome(""));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenPalindrom_thanAccept() {
|
||||
Palindrome palindromeTester = new Palindrome();
|
||||
assertTrue(palindromeTester.isPalindrome("noon"));
|
||||
public void whenPalindrom_thanAccept() {
|
||||
Palindrome palindromeTester = new Palindrome();
|
||||
assertTrue(palindromeTester.isPalindrome("noon"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
x
Reference in New Issue
Block a user