do not use formatter, specify build target

This commit is contained in:
2024-09-25 19:29:49 +02:00
parent e4b2a4d6ea
commit 9b244fc170
2 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: build - name: build
run: make run: make buildlocal
- name: test - name: test
run: make test run: make test

View File

@@ -78,7 +78,7 @@ func TestCommentsAndWhitespace(t *testing.T) {
t.Run(testname, func(t *testing.T) { t.Run(testname, func(t *testing.T) {
for _, line := range test.cmd { for _, line := range test.cmd {
if err := calc.Eval(line); err != nil { if err := calc.Eval(line); err != nil {
t.Errorf(err.Error()) t.Error(err.Error())
} }
} }
got := calc.stack.Last() got := calc.stack.Last()
@@ -292,7 +292,7 @@ func TestCalc(t *testing.T) {
t.Run(testname, func(t *testing.T) { t.Run(testname, func(t *testing.T) {
calc.batch = test.batch calc.batch = test.batch
if err := calc.Eval(test.cmd); err != nil { if err := calc.Eval(test.cmd); err != nil {
t.Errorf(err.Error()) t.Error(err.Error())
} }
got := calc.Result() got := calc.Result()
calc.stack.Clear() calc.stack.Clear()