Skip to content
Snippets Groups Projects
Unverified Commit 3cee099f authored by Kevin Lyda's avatar Kevin Lyda
Browse files

Fix mode-lines, make test

parent 018f3649
No related branches found
No related tags found
No related merge requests found
.PHONY: all generate .PHONY: all generate test
all: generate all: generate test
test -d bin || mkdir bin test -d bin || mkdir bin
go build -o ./bin ./... go build -o ./bin ./...
...@@ -12,5 +12,8 @@ api/endpoints.go: api/oapi-config.yaml api/units.yaml ...@@ -12,5 +12,8 @@ api/endpoints.go: api/oapi-config.yaml api/units.yaml
OAPI_CODEGEN=$(OAPI_CODEGEN) \ OAPI_CODEGEN=$(OAPI_CODEGEN) \
go generate api/generate.go go generate api/generate.go
test:
go test ./...
# vim:ft=make # vim:ft=make
# #
...@@ -28,7 +28,7 @@ func New() (*Engine, error) { ...@@ -28,7 +28,7 @@ func New() (*Engine, error) {
return nil, err return nil, err
} }
rules, err := src.ReadFile("source/rules.pdb") rules, err := src.ReadFile("source/rules.pl")
if err != nil { if err != nil {
return nil, err return nil, err
} }
......
% vim: set ft=prolog:
unit_kind(f, temperature). unit_kind(f, temperature).
unit_kind(k, temperature). unit_kind(k, temperature).
unit_kind(c, temperature). unit_kind(c, temperature).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment