Clean up github runner output (#11451)

This commit is contained in:
SomeTroglodyte
2024-04-11 20:45:25 +02:00
committed by GitHub
parent 5a40c4f563
commit 2d4e8bc83e
6 changed files with 19 additions and 7 deletions

View File

@ -1,3 +1,5 @@
@file:Suppress("UNUSED_VARIABLE") // These are tests and the names serve readability
package com.unciv.logic.civilization
import com.unciv.logic.map.tile.RoadStatus

View File

@ -1,3 +1,5 @@
@file:Suppress("UNUSED_VARIABLE") // These are tests and the names serve readability
package com.unciv.logic.civilization
import com.unciv.logic.map.tile.RoadStatus

View File

@ -1,3 +1,5 @@
@file:Suppress("UNUSED_VARIABLE") // These are tests and the names serve readability
package com.unciv.logic.civilization
import com.badlogic.gdx.math.Vector2

View File

@ -1,3 +1,5 @@
@file:Suppress("UNUSED_VARIABLE") // These are tests and the names serve readability
package com.unciv.logic.map
import com.badlogic.gdx.math.Vector2
@ -22,15 +24,15 @@ internal class UnitFormationTests {
val testGame = TestGame()
fun setUp(size: Int, baseTerrain: String = Constants.desert) {
testGame.makeHexagonalMap(size)
testGame.makeHexagonalMap(size, baseTerrain)
civInfo = testGame.addCiv()
}
@After
fun wrapUp() {
DebugUtils.VISIBLE_MAP = false
}
@Test
fun `basic formation functionality civilian`() {
setUp(1)
@ -71,7 +73,7 @@ internal class UnitFormationTests {
fun `basic formation not available functionality`() {
setUp(1)
val centerTile = testGame.getTile(Vector2(0f,0f))
val civilianUnit = testGame.addUnit("Worker", civInfo, centerTile)
val civilianUnit = testGame.addUnit("Worker", civInfo, centerTile)
assertFalse(civilianUnit.getOtherEscortUnit() != null)
assertFalse(civilianUnit.isEscorting())
civilianUnit.startEscorting()

View File

@ -1,4 +1,6 @@
// Taken from https://github.com/TomGrill/gdx-testing
@file:Suppress("UNUSED_VARIABLE") // These are tests and the names serve readability
// Taken from https://github.com/TomGrill/gdx-testing
package com.unciv.logic.map
import com.badlogic.gdx.math.Vector2

View File

@ -1,3 +1,5 @@
@file:Suppress("UNUSED_VARIABLE") // These are tests and the names serve readability
package com.unciv.logic.map
import com.badlogic.gdx.math.Vector2
@ -36,7 +38,7 @@ class UpgradeTests {
Assert.assertTrue("Unit should upgrade to special unit, not warrior", unit1.baseUnit == unitToUpgradeTo)
}
@Test
fun ruinsUpgradeToNormalUnitWithoutUnique() {
val unitToUpgradeTo = testGame.createBaseUnit()
@ -102,7 +104,7 @@ class UpgradeTests {
val civ = testGame.addCiv()
testGame.addCity(civ, testGame.getTile(Vector2.Zero)) // We need to own the tile to be able to upgrade here
val unit1 = testGame.addUnit(testUnit.name, civ, testGame.getTile(Vector2.Zero))
var upgradeActions = UnitActionsUpgrade.getUpgradeActionAnywhere(unit1)