mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-03 23:26:41 -05:00
updated tests
This commit is contained in:
parent
b86ac4df84
commit
e3ffdf859d
@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
func Test_FileHandleResolver_Process(t *testing.T) {
|
||||
const testDataPath = "./testdata/"
|
||||
const testDataPath = "testdata"
|
||||
|
||||
cfg := akara.NewWorldConfig()
|
||||
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
)
|
||||
|
||||
func Test_FileSourceResolution(t *testing.T) {
|
||||
const testDataPath = "./testdata/"
|
||||
const testDataPath = "testdata"
|
||||
|
||||
cfg := akara.NewWorldConfig()
|
||||
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
func Test_GameConfigSystem_Bootstrap(t *testing.T) {
|
||||
const testDataPath = "./testdata/"
|
||||
const testDataPath = "testdata"
|
||||
|
||||
cfg := akara.NewWorldConfig()
|
||||
|
||||
|
@ -47,8 +47,8 @@ func TestMovementSystem_EntityAdded(t *testing.T) {
|
||||
sys := NewMovementSystem()
|
||||
|
||||
cfg.With(sys).
|
||||
With(d2components.NewPositionMap()).
|
||||
With(d2components.NewVelocityMap())
|
||||
With(d2components.Position).
|
||||
With(d2components.Velocity)
|
||||
|
||||
world := akara.NewWorld(cfg)
|
||||
|
||||
@ -87,8 +87,8 @@ func TestMovementSystem_Update(t *testing.T) {
|
||||
cfg := akara.NewWorldConfig()
|
||||
|
||||
movementSystem := NewMovementSystem()
|
||||
positions := d2components.NewPositionMap()
|
||||
velocities := d2components.NewVelocityMap()
|
||||
positions := d2components.Position.NewMap()
|
||||
velocities := d2components.Velocity.NewMap()
|
||||
|
||||
cfg.With(movementSystem).With(positions).With(velocities)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user