File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ fun whatFoldDoes(): Int {
1212 return result
1313}
1414
15- fun Shop.getSetOfProductsOrderedByEveryCustomer (): Set <Product > {
16- // Return the set of products ordered by every customer
15+ fun Shop.getSetOfProductsOrderedByEachCustomer (): Set <Product > {
16+ // Return the set of products that were ordered by each of the customers
1717 return customers.fold(allOrderedProducts, {
1818 orderedByAll, customer ->
1919 todoCollectionTask()
Original file line number Diff line number Diff line change @@ -17,6 +17,6 @@ class N22FoldKtTest {
1717 order(youTrack)
1818 )
1919 )
20- assertEquals(setOf (idea), testShop.getSetOfProductsOrderedByEveryCustomer ())
20+ assertEquals(setOf (idea), testShop.getSetOfProductsOrderedByEachCustomer ())
2121 }
2222}
You can’t perform that action at this time.
0 commit comments