@Test
public void testCompareTo() {

	String p1 = "[(0/1),(0/3),(0/2)]";
	String p2 = "[(0/1),(0/3),(0/2)]";
	assertTrue(SplitHistory.parse(p2).compareTo(SplitHistory.parse(p1)) == 0);
	p1 = "[(0/1),(0/3),(0/2)]";
	p2 = "[(0/1),(0/3),(1/2)]";
	assertTrue(SplitHistory.parse(p1).compareTo(SplitHistory.parse(p2)) < 0);
	assertTrue(SplitHistory.parse(p2).compareTo(SplitHistory.parse(p1)) > 0);
	p1 = "[(0/1),(0/3)]";
	p2 = "[(0/1),(0/3),(1/2)]";
	assertTrue(SplitHistory.parse(p1).compareTo(SplitHistory.parse(p2)) < 0);
	assertTrue(SplitHistory.parse(p2).compareTo(SplitHistory.parse(p1)) > 0);
	p1 = "[(0/1),(0/3),(0/2)]";
	p2 = "[(0/1),(1/3),(0/2)]";
	assertTrue(SplitHistory.parse(p1).compareTo(SplitHistory.parse(p2)) < 0);
	assertTrue(SplitHistory.parse(p2).compareTo(SplitHistory.parse(p1)) > 0);
}