Generate game
This commit is contained in:
@@ -1,31 +1,19 @@
|
||||
@file:OptIn(ExperimentalResourceApi::class)
|
||||
package domain
|
||||
|
||||
import org.jetbrains.compose.resources.ExperimentalResourceApi
|
||||
//import org.junit.Test
|
||||
import yaep.composeapp.generated.resources.Res
|
||||
import yaep.composeapp.generated.resources.compose_multiplatform
|
||||
import ch.tutteli.atrium.api.fluent.en_GB.feature
|
||||
import ch.tutteli.atrium.api.fluent.en_GB.toEqual
|
||||
import ch.tutteli.atrium.api.verbs.expect
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.fail
|
||||
|
||||
class GameTest {
|
||||
|
||||
@Test
|
||||
fun areCategoriesValid() {
|
||||
// Game(
|
||||
// categories = listOf(
|
||||
// category {
|
||||
// item(Res.drawable.compose_multiplatform)
|
||||
// }
|
||||
// ),
|
||||
// Grid(
|
||||
//
|
||||
// )
|
||||
// )
|
||||
fun `ensure generated game is valid`() {
|
||||
val game = generateGame()
|
||||
expect(game) {
|
||||
feature(Game::areCategoriesValid).toEqual(true)
|
||||
feature(Game::areRulesViolated).toEqual(false)
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun areRulesViolated() {
|
||||
TODO()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user