forked from fishercoder1534/Leetcode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_393Test.java
40 lines (34 loc) · 855 Bytes
/
_393Test.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
package com.fishercoder;
import com.fishercoder.solutions._393;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import static junit.framework.Assert.assertEquals;
/**
* Created by fishercoder on 5/3/17.
*/
public class _393Test {
private static _393 test;
private static boolean expected;
private static boolean actual;
private static int[] data;
@BeforeClass
public static void setup(){
test = new _393();
}
@Test
@Ignore
public void test1(){
data = new int[]{197, 130, 1};
expected = true;
actual = test.validUtf8(data);
assertEquals(expected, actual);
}
@Test
public void test2(){
data = new int[]{5};
expected = true;
actual = test.validUtf8(data);
assertEquals(expected, actual);
}
}