From 5c6ae7c123eec7d88ae32577787d387446571b09 Mon Sep 17 00:00:00 2001 From: lyrjie Date: Sun, 12 Jan 2020 00:17:13 +0300 Subject: [PATCH] Added tests for development-only toggles (#1655) * Added tests for development-only toggles * Revert "Added tests for development-only toggles" This reverts commit eee4de78 * Added the `rewriteTranslationFiles` check to debug test --- tests/src/com/unciv/testing/BasicTests.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/src/com/unciv/testing/BasicTests.kt b/tests/src/com/unciv/testing/BasicTests.kt index 06ab27ac7c..a5761c0a52 100644 --- a/tests/src/com/unciv/testing/BasicTests.kt +++ b/tests/src/com/unciv/testing/BasicTests.kt @@ -37,7 +37,9 @@ class BasicTests { fun gameIsNotRunWithDebugModes() { val game = UncivGame("", null) Assert.assertTrue("This test will only pass if the game is not run with debug modes", - !game.superchargedForDebug && !game.viewEntireMapForDebug) + !game.superchargedForDebug + && !game.viewEntireMapForDebug + && !game.rewriteTranslationFiles) } // If there's a unit that obsoletes with no upgrade then when it obsoletes