fix tests
This commit is contained in:
parent
d921e7247c
commit
aec72d381e
2 changed files with 3 additions and 1 deletions
|
@ -8,6 +8,8 @@ RUN go mod download
|
|||
|
||||
COPY . .
|
||||
|
||||
RUN go test ./...
|
||||
|
||||
RUN cd ./cli && CGO_ENABLED=0 GOOS=linux go build -o 15
|
||||
|
||||
ENTRYPOINT ["./cli/15"]
|
||||
|
|
|
@ -11,7 +11,7 @@ func TestSolved(t *testing.T) {
|
|||
t.Error("cost for solved board should be 0")
|
||||
}
|
||||
|
||||
if *path.Pop() != *board {
|
||||
if *path.Peek() != *board {
|
||||
t.Error("root board should be in path")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue