refactor: NCS-22 NCS-23 reworked modules and tests #17
+1
@@ -52,6 +52,7 @@ class GameEngineCoverageRegressionTest extends AnyFunSuite with Matchers:
|
|||||||
} shouldBe true
|
} shouldBe true
|
||||||
|
|
||||||
test("loadGame returns Left when importer fails"):
|
test("loadGame returns Left when importer fails"):
|
||||||
|
|
||||||
val engine = new GameEngine()
|
val engine = new GameEngine()
|
||||||
val failingImporter = new GameContextImport:
|
val failingImporter = new GameContextImport:
|
||||||
def importGameContext(input: String): Either[String, GameContext] = Left("boom")
|
def importGameContext(input: String): Either[String, GameContext] = Left("boom")
|
||||||
|
|||||||
Reference in New Issue
Block a user