+ "Row #0: 189\n";
assertQueryReturns(query, expected);
}
public void testOptimizeChildrenForTuplesWithLength1() {
TupleList memberList =
productMembersPotScrubbersPotsAndPans(
salesCubeSchemaReader);
TupleList tuples = optimizeChildren(memberList);
assertTrue(
tuppleListContains(
tuples,
member(
Id.Segment.toList(
"Product", "All Products", "Non-Consumable",
"Household", "Kitchen Products", "Pot Scrubbers",
"Cormorant"),
salesCubeSchemaReader)));
assertFalse(
tuppleListContains(
tuples,
member(
Id.Segment.toList(
"Product", "All Products", "Non-Consumable",
"Household", "Kitchen Products", "Pot Scrubbers"),
salesCubeSchemaReader)));
assertFalse(
tuppleListContains(
tuples,
member(
Id.Segment.toList(
"Product", "All Products", "Non-Consumable",
"Household", "Kitchen Products", "Pots and Pans",
"Cormorant"),
salesCubeSchemaReader)));
assertTrue(
tuppleListContains(
tuples,
member(
Id.Segment.toList(
"Product", "All Products", "Non-Consumable",
"Household", "Kitchen Products", "Pots and Pans"),
salesCubeSchemaReader)));
assertEquals(4, tuples.size());
}