Revert "examples/2048: Bug fix: Tests didn't work"

This reverts commit a81da49b59.
This commit is contained in:
Hajime Hoshi 2018-03-21 21:25:17 +09:00
parent c9dbc08222
commit d68d5a7d45
2 changed files with 4 additions and 26 deletions

View File

@ -37,8 +37,10 @@ before_script:
script:
- test -z $(gofmt -s -l $GOPATH/src/github.com/hajimehoshi/ebiten)
- go build -tags example -v github.com/hajimehoshi/ebiten/examples/...
- go test -v github.com/hajimehoshi/ebiten/...
- go test -tags=example -v github.com/hajimehoshi/ebiten/examples/...
- go test -v github.com/hajimehoshi/ebiten
- go test -v github.com/hajimehoshi/ebiten/audio/internal/convert
- go test -v github.com/hajimehoshi/ebiten/internal/math
- go test -v github.com/hajimehoshi/ebiten/internal/restorable
- gopherjs build --tags example -v github.com/hajimehoshi/ebiten/examples/blocks
# Looks like testing GL on node is hard.

View File

@ -94,30 +94,6 @@ type Tile struct {
poppingCount int
}
// Pos returns the tile's current position.
// Pos is used only at testing so far.
func (t *Tile) Pos() (int, int) {
return t.current.x, t.current.y
}
// NextPos returns the tile's next position.
// NextPos is used only at testing so far.
func (t *Tile) NextPos() (int, int) {
return t.next.x, t.next.y
}
// Value returns the tile's current value.
// Value is used only at testing so far.
func (t *Tile) Value() int {
return t.current.value
}
// NextValue returns the tile's current value.
// NextValue is used only at testing so far.
func (t *Tile) NextValue() int {
return t.next.value
}
// NewTile creates a new Tile object.
func NewTile(value int, x, y int) *Tile {
return &Tile{