forked from fishercoder1534/Leetcode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_332Test.java
36 lines (30 loc) · 911 Bytes
/
_332Test.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
package com.fishercoder;
import com.fishercoder.common.utils.CommonUtils;
import com.fishercoder.solutions._332;
import org.junit.BeforeClass;
import org.junit.Test;
import java.util.List;
/**
* Created by stevesun on 6/3/17.
*/
public class _332Test {
private static _332 test;
private static String[][] tickets;
private static List<String> expected;
@BeforeClass
public static void setup(){
test = new _332();
}
@Test
public void test1(){
tickets = new String[][]{{"MUC", "LHR"}, {"JFK", "MUC"}, {"SFO", "SJC"}, {"LHR", "SFO"}};
expected = test.findItinerary(tickets);
CommonUtils.print(expected);
}
@Test
public void test2(){
tickets = new String[][]{{"JFK","SFO"},{"JFK","ATL"},{"SFO","ATL"},{"ATL","JFK"},{"ATL","SFO"}};
expected = test.findItinerary(tickets);
CommonUtils.print(expected);
}
}