From f57955c8d5e394e3f9b907fe6a5869b5341b1366 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Tue, 8 Dec 2020 21:34:00 +0200 Subject: [PATCH] Added a test to make sure that the base ruleset doesn't have any obvious bugs, so I don't shoot myself in the foot again --- tests/src/com/unciv/testing/BasicTests.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/src/com/unciv/testing/BasicTests.kt b/tests/src/com/unciv/testing/BasicTests.kt index 683aaf67f0..0275bda827 100644 --- a/tests/src/com/unciv/testing/BasicTests.kt +++ b/tests/src/com/unciv/testing/BasicTests.kt @@ -77,6 +77,14 @@ class BasicTests { UncivGame.Current.settings = GameSettings().apply { language = "Italian" } } + @Test + fun baseRulesetHasNoBugs() { + ruleset.modOptions.isBaseRuleset=true + val modCheck = ruleset.checkModLinks() + if(modCheck!="") println(modCheck) + Assert.assertTrue(modCheck == "") + } + // @Test // This should NOT run as part of the test suite! // fun tryGetGithubTopicInfo(){