blob: 8efe1bfeb8fbd7725c6916de757232941b711fd3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package scala.collection.immutable
import org.junit.Assert._
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.JUnit4
@RunWith(classOf[JUnit4])
class TreeSetTest {
@Test
def hasCorrectDropAndTakeMethods() {
val set = TreeSet(1, 2, 3)
assertEquals(TreeSet.empty[Int], set take Int.MinValue)
assertEquals(TreeSet.empty[Int], set takeRight Int.MinValue)
assertEquals(set, set drop Int.MinValue)
assertEquals(set, set dropRight Int.MinValue)
}
}
|