fix tests

This commit is contained in:
Gregory Tertyshny 2023-07-26 11:56:59 +03:00
parent d921e7247c
commit aec72d381e
2 changed files with 3 additions and 1 deletions

View file

@ -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"]

View file

@ -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")
}