package test.easy;

import algorithm.easy.BestTime2BuyAndSell;
import algorithm.easy.ValidPalindrome;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.assertTrue;


/**
 * Created by Kyle on 25/04/2017.
 */
public class ValidPalindromeTest extends BestTime2BuyAndSell {
    @Before
    public void setUp() throws Exception {

    }

    @After
    public void tearDown() throws Exception {

    }

    @Test
    public void isPalindrome() throws Exception {
        ValidPalindrome vp = new ValidPalindrome();
        assertTrue(vp.isPalindrome("a."));
        assertTrue(vp.isPalindrome("a.a"));
        assertTrue(vp.isPalindrome("AB.ba"));
        assertTrue(vp.isPalindrome("a b. B    a"));
    }
}
@@ -168,16 +168,60 @@
 .Test;%0A%0A
+import static org.junit.Assert.assertFalse;%0A
 import s
@@ -638,18 +638,58 @@
 ndrome(%22
-a.
+%22));%0A        assertTrue(vp.isPalindrome(%22 
 %22));%0A   
@@ -723,17 +723,16 @@
 rome(%22a.
-a
 %22));%0A   
@@ -822,19 +822,75 @@
  B    a%22));%0A
+        assertFalse(vp.isPalindrome(%22a ba dg B    a%22));%0A
     %7D%0A%7D

add more test case