package searcherTests;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import primitives.cluster.ClusterHead;
import primitives.cluster.ClusterUtils;
import search.util.TreeLoader;
public class TreeLoaderTest {
String dotFile;
@Before
public void setUp() throws Exception {
dotFile = "digraph G{\n" +
" a [label=lol]\n" +
" a -> b [label=keepin it crunk]\n" +
"\n}";
}
@Test
public void testBasic(){
ClusterHead tree = null;
try{
tree = TreeLoader.loadTreeFromDot("/Users/mat/Documents/graphs/pump.dot");
}catch(Exception e){
fail("boo" +e);
}
ClusterUtils.prettyPrintTree(tree);
System.out.println(tree.getCluster());
}
}