Skip to content

Commit 9ec9868

Browse files
committed
examples: fix test compilation
1 parent 7fefb09 commit 9ec9868

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

examples/common_test.go renamed to examples/map_metadata_test.go

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,17 @@ package examples_test
33
import (
44
"testing"
55

6-
"github.com/golang/geo/r2"
7-
"github.com/markus-wa/demoinfocs-golang/v2/examples"
8-
"github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/metadata"
96
"github.com/stretchr/testify/assert"
7+
8+
"github.com/markus-wa/demoinfocs-golang/v2/examples"
109
)
1110

1211
func TestGetMapMetadata(t *testing.T) {
1312
meta := examples.GetMapMetadata("de_cache", 1901448379)
1413

15-
assert.Equal(t, metadata.Map{
16-
Name: "de_cache",
17-
PZero: r2.Point{
18-
X: -2000,
19-
Y: 3250,
20-
},
14+
assert.Equal(t, examples.Map{
15+
PosX: -2000,
16+
PosY: 3250,
2117
Scale: 5.5,
2218
}, meta)
2319
}

0 commit comments

Comments
 (0)