25 lines
540 B
Kotlin
25 lines
540 B
Kotlin
package solutions.bitbadger.documents
|
|
|
|
import org.junit.jupiter.api.DisplayName
|
|
import org.junit.jupiter.api.Test
|
|
import kotlin.test.assertEquals
|
|
|
|
/**
|
|
* Unit tests for the `FieldMatch` enum
|
|
*/
|
|
@DisplayName("Kotlin | FieldMatch")
|
|
class FieldMatchTest {
|
|
|
|
@Test
|
|
@DisplayName("ANY uses proper SQL")
|
|
fun any() {
|
|
assertEquals("OR", FieldMatch.ANY.sql, "ANY should use OR")
|
|
}
|
|
|
|
@Test
|
|
@DisplayName("ALL uses proper SQL")
|
|
fun all() {
|
|
assertEquals("AND", FieldMatch.ALL.sql, "ALL should use AND")
|
|
}
|
|
}
|