From 9b244fc17078e4e5e6a58540464f8fa9a447b94b Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Wed, 25 Sep 2024 19:29:49 +0200 Subject: [PATCH] do not use formatter, specify build target --- .github/workflows/ci.yaml | 2 +- calc_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 154ad92..a23cafa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v4 - name: build - run: make + run: make buildlocal - name: test run: make test diff --git a/calc_test.go b/calc_test.go index 85d75a8..c4c6a7c 100644 --- a/calc_test.go +++ b/calc_test.go @@ -78,7 +78,7 @@ func TestCommentsAndWhitespace(t *testing.T) { t.Run(testname, func(t *testing.T) { for _, line := range test.cmd { if err := calc.Eval(line); err != nil { - t.Errorf(err.Error()) + t.Error(err.Error()) } } got := calc.stack.Last() @@ -292,7 +292,7 @@ func TestCalc(t *testing.T) { t.Run(testname, func(t *testing.T) { calc.batch = test.batch if err := calc.Eval(test.cmd); err != nil { - t.Errorf(err.Error()) + t.Error(err.Error()) } got := calc.Result() calc.stack.Clear()