Skip to content

Commit

Permalink
Don't depend on zgo.at/ztest
Browse files Browse the repository at this point in the history
  • Loading branch information
arp242 committed Feb 3, 2020
1 parent a7e0391 commit aa510d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
5 changes: 1 addition & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@ module arp242.net/uni

go 1.12

require (
golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e
zgo.at/ztest v1.0.0
)
require golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e
4 changes: 0 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg=
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e h1:N7DeIrjYszNmSW409R3frPPwglRwMkXSBzwVbkOjLLA=
golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
zgo.at/ztest v1.0.0 h1:MKJXDboceOH2bFKaWN8GJ0bUgfJgx4pp/HWeCTOCJbA=
zgo.at/ztest v1.0.0/go.mod h1:iTxcAVkHLq73Qnd+a8rlwc6Ayrk8sbnJPsGeapG/y0Q=
9 changes: 5 additions & 4 deletions uni_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import (
"sort"
"strings"
"testing"

"zgo.at/ztest"
)

func TestCLI(t *testing.T) {
Expand Down Expand Up @@ -260,9 +258,12 @@ func TestAllEmoji(t *testing.T) {
for i := range outEmojis {
outEmojis[i] = strings.ReplaceAll(outEmojis[i], "\ufe0f", `\ufe0f`)
}
if d := ztest.Diff(outEmojis, wantEmojis); d != "" {
t.Error(d)
if !reflect.DeepEqual(outEmojis, wantEmojis) {
t.Errorf("emoji lists not equal\nout: %v\nwant: %v", outEmojis, wantEmojis)
}
//if d := ztest.Diff(outEmojis, wantEmojis); d != "" {
// t.Error(d)
//}
}

func setup(t *testing.T, args []string, wantExit int) (fmt.Stringer, func()) {
Expand Down

0 comments on commit aa510d6

Please sign in to comment.