mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-25 04:17:59 +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_))
|
||||
}
|
||||
|
||||
@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
|
||||
fun testAutoUnconstrained() {
|
||||
val depth = auto(255)
|
||||
|
|
Loading…
Reference in a new issue