mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
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
This commit is contained in:
parent
109b60db2c
commit
5c6ae7c123
@ -37,7 +37,9 @@ class BasicTests {
|
|||||||
fun gameIsNotRunWithDebugModes() {
|
fun gameIsNotRunWithDebugModes() {
|
||||||
val game = UncivGame("", null)
|
val game = UncivGame("", null)
|
||||||
Assert.assertTrue("This test will only pass if the game is not run with debug modes",
|
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
|
// If there's a unit that obsoletes with no upgrade then when it obsoletes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user