Skip to content

Commit

Permalink
assert package updated
Browse files Browse the repository at this point in the history
  • Loading branch information
andygeiss committed Jul 18, 2019
1 parent 6bc90d4 commit 036e739
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module github.com/andygeiss/esp32-transpiler

require github.com/andygeiss/assert v0.0.3
go 1.12

require github.com/andygeiss/assert v0.0.6
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/andygeiss/assert v0.0.3 h1:PgY7eH+UaCvOzScsX3HGqNfCemkvpcNHQjwT2Dyq0sw=
github.com/andygeiss/assert v0.0.3/go.mod h1:ztUvWrfUo43X0zMA1XfX8esn5Uavk6ANSKTT0w2qvAI=
github.com/andygeiss/assert v0.0.6 h1:FyiAIudVwnxp55GIcNOaZ2ABr8n2RI9SXmaXG7+Y53o=
github.com/andygeiss/assert v0.0.6/go.mod h1:ztUvWrfUo43X0zMA1XfX8esn5Uavk6ANSKTT0w2qvAI=
3 changes: 1 addition & 2 deletions impl/transpile/transpile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package transpile_test
import (
"bytes"
"github.com/andygeiss/assert"
"github.com/andygeiss/assert/is"
"github.com/andygeiss/esp32-transpiler/api/worker"
"github.com/andygeiss/esp32-transpiler/impl/transpile"
"io"
Expand Down Expand Up @@ -32,5 +31,5 @@ func TestTranspileErrorShouldBeNil(t *testing.T) {
worker := &mockupWorker{&in, &out}
trans := transpile.NewTranspiler(worker)
err := trans.Transpile()
assert.That(t, err, is.Equal(nil))
assert.That(t, err, nil)
}
5 changes: 2 additions & 3 deletions impl/worker/worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package worker_test
import (
"bytes"
"github.com/andygeiss/assert"
"github.com/andygeiss/assert/is"
"github.com/andygeiss/esp32-transpiler/impl/worker"
"strings"
"testing"
Expand All @@ -24,10 +23,10 @@ func Validate(source, expected string, t *testing.T) {
var in, out bytes.Buffer
in.WriteString(source)
wrk := worker.NewWorker(&in, &out, worker.NewMapping())
assert.That(t, wrk.Start(), is.Equal(nil))
assert.That(t, wrk.Start(), nil)
code := out.String()
tcode, texpected := Trim(code), Trim(expected)
assert.That(t, tcode, is.Equal(texpected))
assert.That(t, tcode, texpected)
}

func Test_Empty_Package(t *testing.T) {
Expand Down

0 comments on commit 036e739

Please sign in to comment.