mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 07:17:50 +07:00
Clean up github runner output (#11451)
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user