mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-25 12:27:58 +01:00
Test Depth.min()
This commit is contained in:
parent
8768ebaafd
commit
1095f83454
1 changed files with 10 additions and 0 deletions
|
@ -65,6 +65,16 @@ class DepthTest {
|
||||||
assertEquals(0, depth2.compareTo(depth2_))
|
assertEquals(0, depth2.compareTo(depth2_))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
fun testMin() {
|
||||||
|
val unlimited = unconstrained()
|
||||||
|
val limit2 = limited(2)
|
||||||
|
assertEquals(limit2, limit2.min(unlimited))
|
||||||
|
assertEquals(limit2, unlimited.min(limit2))
|
||||||
|
assertEquals(limit2, limit2.min(limit2))
|
||||||
|
assertEquals(unlimited, unlimited.min(unlimited))
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testAutoUnconstrained() {
|
fun testAutoUnconstrained() {
|
||||||
val depth = auto(255)
|
val depth = auto(255)
|
||||||
|
|
Loading…
Reference in a new issue