Skip to content

Commit

Permalink
tests: updated paths in some tests
Browse files Browse the repository at this point in the history
FossilOrigin-Name: a374a66c3d65c21f0a518444df0f03380589f92cff5ce9f195b6813093cd0687
  • Loading branch information
thindil committed Oct 11, 2024
1 parent fb7e447 commit f08b33c
Show file tree
Hide file tree
Showing 19 changed files with 109 additions and 109 deletions.
10 changes: 5 additions & 5 deletions tests/bases.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ include ../src/bases
suite "Unit tests for bases module":

checkpoint "Loading the game data."
loadData("../bin/data/game.dat")
loadItems("../bin/data/items.dat")
loadCareers("../bin/data/careers.dat")
loadFactions("../bin/data/factions.dat")
loadBasesTypes("../bin/data/bases.dat")
loadData("bin/data/game.dat")
loadItems("bin/data/items.dat")
loadCareers("bin/data/careers.dat")
loadFactions("bin/data/factions.dat")
loadBasesTypes("bin/data/bases.dat")
checkpoint "Setting the tests."
playerShip.skyX = 1
playerShip.skyY = 1
Expand Down
18 changes: 9 additions & 9 deletions tests/bases2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ include ../src/bases2
suite "Unit tests for bases2 module":

checkpoint "Loading the game data."
loadData("../bin/data/game.dat")
loadItems("../bin/data/items.dat")
loadCareers("../bin/data/careers.dat")
loadFactions("../bin/data/factions.dat")
loadBasesTypes("../bin/data/bases.dat")
loadModules("../bin/data/shipmodules.dat")
loadRecipes("../bin/data/recipes.dat")
loadMobs("../bin/data/mobs.dat")
loadShips("../bin/data/ships.dat")
loadData("bin/data/game.dat")
loadItems("bin/data/items.dat")
loadCareers("bin/data/careers.dat")
loadFactions("bin/data/factions.dat")
loadBasesTypes("bin/data/bases.dat")
loadModules("bin/data/shipmodules.dat")
loadRecipes("bin/data/recipes.dat")
loadMobs("bin/data/mobs.dat")
loadShips("bin/data/ships.dat")

playerShip.skyX = 200
playerShip.skyY = 200
Expand Down
18 changes: 9 additions & 9 deletions tests/basesship2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ suite "Unit tests for basesship2 module":

checkpoint "Loading the game data."
if basesTypesList.len == 0:
loadData("../bin/data/game.dat")
loadItems("../bin/data/items.dat")
loadCareers("../bin/data/careers.dat")
loadFactions("../bin/data/factions.dat")
loadBasesTypes("../bin/data/bases.dat")
loadData("bin/data/game.dat")
loadItems("bin/data/items.dat")
loadCareers("bin/data/careers.dat")
loadFactions("bin/data/factions.dat")
loadBasesTypes("bin/data/bases.dat")
if modulesList.len == 0:
loadModules("../bin/data/shipmodules.dat")
loadModules("bin/data/shipmodules.dat")
if recipesList.len == 0:
loadRecipes("../bin/data/recipes.dat")
loadRecipes("bin/data/recipes.dat")
if protoMobsList.len == 0:
loadMobs("../bin/data/mobs.dat")
loadMobs("bin/data/mobs.dat")
if protoShipsList.len == 0:
loadShips("../bin/data/ships.dat")
loadShips("bin/data/ships.dat")

skyBases[1].reputation = ReputationData(level: 1, experience: 1)
playerShip.skyX = 1
Expand Down
18 changes: 9 additions & 9 deletions tests/basestrade.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ include ../src/basestrade

suite "Unit tests for basestrade module":
checkpoint "Loading the game data."
loadData("../bin/data/game.dat")
loadItems("../bin/data/items.dat")
loadCareers("../bin/data/careers.dat")
loadFactions("../bin/data/factions.dat")
loadModules("../bin/data/shipmodules.dat")
loadRecipes("../bin/data/recipes.dat")
loadMobs("../bin/data/mobs.dat")
loadShips("../bin/data/ships.dat")
loadBasesTypes("../bin/data/bases.dat")
loadData("bin/data/game.dat")
loadItems("bin/data/items.dat")
loadCareers("bin/data/careers.dat")
loadFactions("bin/data/factions.dat")
loadModules("bin/data/shipmodules.dat")
loadRecipes("bin/data/recipes.dat")
loadMobs("bin/data/mobs.dat")
loadShips("bin/data/ships.dat")
loadBasesTypes("bin/data/bases.dat")

playerShip.skyX = 1
playerShip.skyY = 1
Expand Down
4 changes: 2 additions & 2 deletions tests/crewinventory.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import unittest2
suite "Unit tests for crewinventory module":

checkpoint "Loading the game data."
loadData("../bin/data/game.dat")
loadItems("../bin/data/items.dat")
loadData("bin/data/game.dat")
loadItems("bin/data/items.dat")

playerShip.crew = @[]
var member = MemberData(homeBase: 1)
Expand Down
16 changes: 8 additions & 8 deletions tests/events.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import unittest2
suite "Unit tests for events module":

checkpoint "Loading the game data."
loadData("../bin/data/game.dat")
loadItems("../bin/data/items.dat")
loadModules("../bin/data/shipmodules.dat")
loadCareers("../bin/data/careers.dat")
loadFactions("../bin/data/factions.dat")
loadRecipes("../bin/data/recipes.dat")
loadMobs("../bin/data/mobs.dat")
loadShips("../bin/data/ships.dat")
loadData("bin/data/game.dat")
loadItems("bin/data/items.dat")
loadModules("bin/data/shipmodules.dat")
loadCareers("bin/data/careers.dat")
loadFactions("bin/data/factions.dat")
loadRecipes("bin/data/recipes.dat")
loadMobs("bin/data/mobs.dat")
loadShips("bin/data/ships.dat")

playerShip.skyX = 1
playerShip.skyY = 1
Expand Down
2 changes: 1 addition & 1 deletion tests/game.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include ../src/game
suite "Unit tests for game module":

checkpoint "Loading the game data."
loadData("../bin/data/game.dat")
loadData("bin/data/game.dat")

test "Find an index of an exisiting skill":
check:
Expand Down
2 changes: 1 addition & 1 deletion tests/goals.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include ../src/goals
suite "Unit tests for goals module":

checkpoint "Loading the game data."
loadGoals("../bin/data/goals.dat")
loadGoals("bin/data/goals.dat")

currentGoal = goalsList[2]

Expand Down
10 changes: 5 additions & 5 deletions tests/missions.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ include ../src/missions
suite "Unit tests for missions module":

checkpoint "Loading the game data."
loadData("../bin/data/game.dat")
loadItems("../bin/data/items.dat")
loadCareers("../bin/data/careers.dat")
loadFactions("../bin/data/factions.dat")
loadModules("../bin/data/shipmodules.dat")
loadData("bin/data/game.dat")
loadItems("bin/data/items.dat")
loadCareers("bin/data/careers.dat")
loadFactions("bin/data/factions.dat")
loadModules("bin/data/shipmodules.dat")

playerShip.skyX = 1
playerShip.skyY = 1
Expand Down
12 changes: 6 additions & 6 deletions tests/missions2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ include ../src/missions2
suite "Unit tests for missions2 module":

checkpoint "Loading the game data."
loadData("../bin/data/game.dat")
loadItems("../bin/data/items.dat")
loadCareers("../bin/data/careers.dat")
loadFactions("../bin/data/factions.dat")
loadModules("../bin/data/shipmodules.dat")
loadBasesTypes("../bin/data/bases.dat")
loadData("bin/data/game.dat")
loadItems("bin/data/items.dat")
loadCareers("bin/data/careers.dat")
loadFactions("bin/data/factions.dat")
loadModules("bin/data/shipmodules.dat")
loadBasesTypes("bin/data/bases.dat")

playerShip.skyX = 1
playerShip.skyY = 1
Expand Down
10 changes: 5 additions & 5 deletions tests/shipmodules.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ include ../src/shipmodules
suite "Unit tests for shipmodules module":

checkpoint "Loading the game data."
loadData("../bin/data/game.dat")
loadItems("../bin/data/items.dat")
loadCareers("../bin/data/careers.dat")
loadFactions("../bin/data/factions.dat")
loadModules("../bin/data/shipmodules.dat")
loadData("bin/data/game.dat")
loadItems("bin/data/items.dat")
loadCareers("bin/data/careers.dat")
loadFactions("bin/data/factions.dat")
loadModules("bin/data/shipmodules.dat")

test "Get the type of the module":
check:
Expand Down
16 changes: 8 additions & 8 deletions tests/ships.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ include ../src/ships
suite "Unit tests for ships module":

checkpoint "Loading the game data."
loadData("../bin/data/game.dat")
loadItems("../bin/data/items.dat")
loadCareers("../bin/data/careers.dat")
loadFactions("../bin/data/factions.dat")
loadModules("../bin/data/shipmodules.dat")
loadRecipes("../bin/data/recipes.dat")
loadMobs("../bin/data/mobs.dat")
loadShips("../bin/data/ships.dat")
loadData("bin/data/game.dat")
loadItems("bin/data/items.dat")
loadCareers("bin/data/careers.dat")
loadFactions("bin/data/factions.dat")
loadModules("bin/data/shipmodules.dat")
loadRecipes("bin/data/recipes.dat")
loadMobs("bin/data/mobs.dat")
loadShips("bin/data/ships.dat")

test "Getting a cabin's quality.":
check:
Expand Down
16 changes: 8 additions & 8 deletions tests/ships2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import unittest2
suite "Unit tests for ships2 module":

checkpoint "Loading the game data."
loadData("../bin/data/game.dat")
loadItems("../bin/data/items.dat")
loadCareers("../bin/data/careers.dat")
loadFactions("../bin/data/factions.dat")
loadModules("../bin/data/shipmodules.dat")
loadRecipes("../bin/data/recipes.dat")
loadMobs("../bin/data/mobs.dat")
loadShips("../bin/data/ships.dat")
loadData("bin/data/game.dat")
loadItems("bin/data/items.dat")
loadCareers("bin/data/careers.dat")
loadFactions("bin/data/factions.dat")
loadModules("bin/data/shipmodules.dat")
loadRecipes("bin/data/recipes.dat")
loadMobs("bin/data/mobs.dat")
loadShips("bin/data/ships.dat")

test "Damaging a module.":
playerShip.modules = @[]
Expand Down
8 changes: 4 additions & 4 deletions tests/shipscrew.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import unittest2
suite "Unit tests for shipscrew module":

checkpoint "Loading the game data."
loadData("../bin/data/game.dat")
loadItems("../bin/data/items.dat")
loadCareers("../bin/data/careers.dat")
loadFactions("../bin/data/factions.dat")
loadData("bin/data/game.dat")
loadItems("bin/data/items.dat")
loadCareers("bin/data/careers.dat")
loadFactions("bin/data/factions.dat")

playerCareer = "general"
playerShip.skyX = 1
Expand Down
18 changes: 9 additions & 9 deletions tests/shipsmovement.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ include ../src/shipsmovement
suite "Unit tests for shipsmovement module":

checkpoint "Loading the game data."
loadData("../bin/data/game.dat")
loadItems("../bin/data/items.dat")
loadCareers("../bin/data/careers.dat")
loadFactions("../bin/data/factions.dat")
loadBasesTypes("../bin/data/bases.dat")
loadModules("../bin/data/shipmodules.dat")
loadRecipes("../bin/data/recipes.dat")
loadMobs("../bin/data/mobs.dat")
loadShips("../bin/data/ships.dat")
loadData("bin/data/game.dat")
loadItems("bin/data/items.dat")
loadCareers("bin/data/careers.dat")
loadFactions("bin/data/factions.dat")
loadBasesTypes("bin/data/bases.dat")
loadModules("bin/data/shipmodules.dat")
loadRecipes("bin/data/recipes.dat")
loadMobs("bin/data/mobs.dat")
loadShips("bin/data/ships.dat")

playerShip.modules = @[]
playerShip.modules.add(ModuleData(mType: ModuleType2.engine, protoIndex: 3,
Expand Down
10 changes: 5 additions & 5 deletions tests/shipsrepairs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ include ../src/shipsrepairs
suite "Unit tests for shipsrepairs module":

checkpoint "Loading the game data."
loadData("../bin/data/game.dat")
loadItems("../bin/data/items.dat")
loadCareers("../bin/data/careers.dat")
loadFactions("../bin/data/factions.dat")
loadModules("../bin/data/shipmodules.dat")
loadData("bin/data/game.dat")
loadItems("bin/data/items.dat")
loadCareers("bin/data/careers.dat")
loadFactions("bin/data/factions.dat")
loadModules("bin/data/shipmodules.dat")

playerShip.modules = @[]
playerShip.modules.add(ModuleData(mType: ModuleType2.engine, protoIndex: 3,
Expand Down
10 changes: 5 additions & 5 deletions tests/shipsupgrade.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ include ../src/shipsupgrade
suite "Unit tests for shipsupgrade module":

checkpoint "Loading the game data."
loadData("../bin/data/game.dat")
loadItems("../bin/data/items.dat")
loadCareers("../bin/data/careers.dat")
loadFactions("../bin/data/factions.dat")
loadModules("../bin/data/shipmodules.dat")
loadData("bin/data/game.dat")
loadItems("bin/data/items.dat")
loadCareers("bin/data/careers.dat")
loadFactions("bin/data/factions.dat")
loadModules("bin/data/shipmodules.dat")

playerShip.modules = @[]
playerShip.modules.add(ModuleData(mType: ModuleType2.engine, protoIndex: 3,
Expand Down
10 changes: 5 additions & 5 deletions tests/stories.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ include ../src/stories
suite "Unit tests for stories module":

checkpoint "Loading the game data."
loadData("../bin/data/game.dat")
loadItems("../bin/data/items.dat")
loadCareers("../bin/data/careers.dat")
loadFactions("../bin/data/factions.dat")
loadStories("../bin/data/stories.dat")
loadData("bin/data/game.dat")
loadItems("bin/data/items.dat")
loadCareers("bin/data/careers.dat")
loadFactions("bin/data/factions.dat")
loadStories("bin/data/stories.dat")

test "Get finish data of the selected step.":
check:
Expand Down
10 changes: 5 additions & 5 deletions tests/stories2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ include ../src/stories2
suite "Unit tests for stories2 module":

checkpoint "Loading the game data."
loadData("../bin/data/game.dat")
loadItems("../bin/data/items.dat")
loadCareers("../bin/data/careers.dat")
loadFactions("../bin/data/factions.dat")
loadStories("../bin/data/stories.dat")
loadData("bin/data/game.dat")
loadItems("bin/data/items.dat")
loadCareers("bin/data/careers.dat")
loadFactions("bin/data/factions.dat")
loadStories("bin/data/stories.dat")

playerShip.crew = @[]
playerShip.crew.add(MemberData(morale: [1: 50.Natural, 2: 0.Natural],
Expand Down

0 comments on commit f08b33c

Please sign in to comment.