forked from fishercoder1534/Leetcode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_392Test.java
41 lines (35 loc) · 868 Bytes
/
_392Test.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.fishercoder;
import com.fishercoder.solutions._392;
import org.junit.BeforeClass;
import org.junit.Test;
import static junit.framework.Assert.assertEquals;
/**
* Created by fishercoder on 5/7/17.
*/
public class _392Test {
private static _392 test;
private static String s;
private static String t;
private static boolean expected;
private static boolean actual;
@BeforeClass
public static void setup(){
test = new _392();
}
@Test
public void test1(){
s = "abc";
t = "ahbgdc";
expected = true;
actual = test.isSubsequence(s, t);
assertEquals(expected, actual);
}
@Test
public void test2(){
s = "axc";
t = "ahbgdc";
expected = false;
actual = test.isSubsequence(s, t);
assertEquals(expected, actual);
}
}