Nodeid n1 = Nodeid.fromAscii("c75297c1786734589175c673db40e8ecaa032b09");
Nodeid n2 = Nodeid.fromAscii("3b7d51ed4c65082f9235e3459e282d7ff723aa97");
Nodeid n3 = Nodeid.fromAscii("14dac192aa262feb8ff6645a102648498483a188");
Nodeid n4 = Nodeid.fromAscii("1deea2f332183c947937f6df988c2c6417efc217");
Nodeid[] nodes = { n1, n2, n3 };
RevisionSet a = new RevisionSet(nodes);
Nodeid[] nodes1 = { n3, n4 };
RevisionSet b = new RevisionSet(nodes1);
Nodeid[] nodes2 = { n1, n2, n3, n4 };
RevisionSet union_ab = new RevisionSet(nodes2);
Nodeid[] nodes3 = { n3 };
RevisionSet intersect_ab = new RevisionSet(nodes3);
Nodeid[] nodes4 = { n1, n2 };
RevisionSet subtract_ab = new RevisionSet(nodes4);
Nodeid[] nodes5 = { n4 };
RevisionSet subtract_ba = new RevisionSet(nodes5);
Nodeid[] nodes6 = { n1, n2, n4 };
RevisionSet symDiff_ab = new RevisionSet(nodes6);
errorCollector.assertEquals(union_ab, a.union(b));
errorCollector.assertEquals(union_ab, b.union(a));
errorCollector.assertEquals(intersect_ab, a.intersect(b));
errorCollector.assertEquals(intersect_ab, b.intersect(a));
errorCollector.assertEquals(subtract_ab, a.subtract(b));
errorCollector.assertEquals(subtract_ba, b.subtract(a));
errorCollector.assertEquals(symDiff_ab, a.symmetricDifference(b));
errorCollector.assertEquals(symDiff_ab, b.symmetricDifference(a));
Nodeid[] nodes7 = { n1, n2, n4 };
Nodeid[] nodes8 = { n4, n1, n2 };
errorCollector.assertTrue(new RevisionSet(nodes7).equals(new RevisionSet(nodes8)));
Nodeid[] nodes9 = {};
Nodeid[] nodes10 = {};
errorCollector.assertTrue(new RevisionSet(nodes9).equals(new RevisionSet(nodes10)));
Nodeid[] nodes11 = { n1 };
Nodeid[] nodes12 = { n2 };
errorCollector.assertFalse(new RevisionSet(nodes11).equals(new RevisionSet(nodes12)));
}