public void superSetsOfSingleElement() { HashSet <HashSet <int> > expected = new HashSet <HashSet <int> >(); expected.Add(setWithElements()); expected.Add(setWithElements(1)); setEquals(expected, SetUtil.superSets(setWithElements(1))); }
public void superSetsOfBiggerSet() { HashSet <HashSet <int> > expected = new HashSet <HashSet <int> >(); expected.Add(setWithElements()); expected.Add(setWithElements(1)); expected.Add(setWithElements(2)); expected.Add(setWithElements(3)); expected.Add(setWithElements(1, 2)); expected.Add(setWithElements(1, 3)); expected.Add(setWithElements(2, 3)); expected.Add(setWithElements(1, 2, 3)); setEquals(expected, SetUtil.superSets(setWithElements(1, 2, 3))); }
public void superSetsOfEmptySet() { setEquals(new HashSet <HashSet <int> >(), SetUtil.superSets(new HashSet <int>())); }