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 . .
|
COPY . .
|
||||||
|
|
||||||
|
RUN go test ./...
|
||||||
|
|
||||||
RUN cd ./cli && CGO_ENABLED=0 GOOS=linux go build -o 15
|
RUN cd ./cli && CGO_ENABLED=0 GOOS=linux go build -o 15
|
||||||
|
|
||||||
ENTRYPOINT ["./cli/15"]
|
ENTRYPOINT ["./cli/15"]
|
||||||
|
|
|
@ -11,7 +11,7 @@ func TestSolved(t *testing.T) {
|
||||||
t.Error("cost for solved board should be 0")
|
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")
|
t.Error("root board should be in path")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue