1
0
Fork 0
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:
Paul Schaub 2023-06-30 18:06:09 +02:00
parent 8768ebaafd
commit 1095f83454
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -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)