Skip to content

Commit b120101

Browse files
committed
fixup! Add tapEach
add Stream#tapEach test
1 parent 0d2c01d commit b120101

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compat/src/test/scala/test/scala/collection/CollectionTest.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,9 @@ class CollectionTest {
105105
assertEquals(6, count)
106106
List(1, 2, 3).tapEach(count += _)
107107
assertEquals(12, count)
108+
val stream = Stream(1, 2, 3).tapEach(count += _)
109+
assertEquals(13, count)
110+
stream.force
111+
assertEquals(18, count)
108112
}
109113
}

0 commit comments

Comments
 (0)