8000 Replace "each" with "every" to clarify N22FoldKtTest. by 6bangs · Pull Request #177 · Kotlin/kotlin-koans · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.

Replace "each" with "every" to clarify N22FoldKtTest. #177

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading< 10000 /span>
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ii_collections/n22Fold.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ fun whatFoldDoes(): Int {
return result
}

fun Shop.getSetOfProductsOrderedByEachCustomer(): Set<Product> {
// Return the set of products that were ordered by each of the customers
fun Shop.getSetOfProductsOrderedByEveryCustomer(): Set<Product> {
// Return the set of products that were ordered by every customer
return customers.fold(allOrderedProducts, { orderedByAll, customer ->
todoCollectionTask()
})
Expand Down
2 changes: 1 addition & 1 deletion test/ii_collections/N22FoldKtTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ class N22FoldKtTest {
order(youTrack)
)
)
assertEquals(setOf(idea), testShop.getSetOfProductsOrderedByEachCustomer())
assertEquals(setOf(idea), testShop.getSetOfProductsOrderedByEveryCustomer())
}
}
0