1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2025-02-13 12:06:31 -05:00

updated tests

This commit is contained in:
gravestench 2020-11-22 13:18:50 -08:00
parent b86ac4df84
commit e3ffdf859d
4 changed files with 7 additions and 7 deletions

View File

@ -11,7 +11,7 @@ import (
) )
func Test_FileHandleResolver_Process(t *testing.T) { func Test_FileHandleResolver_Process(t *testing.T) {
const testDataPath = "./testdata/" const testDataPath = "testdata"
cfg := akara.NewWorldConfig() cfg := akara.NewWorldConfig()

View File

@ -10,7 +10,7 @@ import (
) )
func Test_FileSourceResolution(t *testing.T) { func Test_FileSourceResolution(t *testing.T) {
const testDataPath = "./testdata/" const testDataPath = "testdata"
cfg := akara.NewWorldConfig() cfg := akara.NewWorldConfig()

View File

@ -9,7 +9,7 @@ import (
) )
func Test_GameConfigSystem_Bootstrap(t *testing.T) { func Test_GameConfigSystem_Bootstrap(t *testing.T) {
const testDataPath = "./testdata/" const testDataPath = "testdata"
cfg := akara.NewWorldConfig() cfg := akara.NewWorldConfig()

View File

@ -47,8 +47,8 @@ func TestMovementSystem_EntityAdded(t *testing.T) {
sys := NewMovementSystem() sys := NewMovementSystem()
cfg.With(sys). cfg.With(sys).
With(d2components.NewPositionMap()). With(d2components.Position).
With(d2components.NewVelocityMap()) With(d2components.Velocity)
world := akara.NewWorld(cfg) world := akara.NewWorld(cfg)
@ -87,8 +87,8 @@ func TestMovementSystem_Update(t *testing.T) {
cfg := akara.NewWorldConfig() cfg := akara.NewWorldConfig()
movementSystem := NewMovementSystem() movementSystem := NewMovementSystem()
positions := d2components.NewPositionMap() positions := d2components.Position.NewMap()
velocities := d2components.NewVelocityMap() velocities := d2components.Velocity.NewMap()
cfg.With(movementSystem).With(positions).With(velocities) cfg.With(movementSystem).With(positions).With(velocities)