diff --git a/Dockerfile b/Dockerfile index 8ef34a1..45698fd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/lib/solver_test.go b/lib/solver_test.go index d0d1b5a..cf0d5cd 100644 --- a/lib/solver_test.go +++ b/lib/solver_test.go @@ -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") }