diff options
author | Gianni Ceccarelli <gianni.ceccarelli@broadbean.com> | 2019-08-01 17:12:33 +0100 |
---|---|---|
committer | Gianni Ceccarelli <gianni.ceccarelli@broadbean.com> | 2019-08-01 17:12:33 +0100 |
commit | 14bd7e9a6550526cddeed14a602c19cfd6aedd9c (patch) | |
tree | 825bca5d65c5949c10671c623721aa9d56dbb89b /go/mixed-server_test.go | |
parent | go implemenntation (diff) | |
download | mixed-server-14bd7e9a6550526cddeed14a602c19cfd6aedd9c.tar.gz mixed-server-14bd7e9a6550526cddeed14a602c19cfd6aedd9c.tar.bz2 mixed-server-14bd7e9a6550526cddeed14a602c19cfd6aedd9c.zip |
simpler and more correct model
Diffstat (limited to 'go/mixed-server_test.go')
-rw-r--r-- | go/mixed-server_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/go/mixed-server_test.go b/go/mixed-server_test.go index 63e545b..c7e3624 100644 --- a/go/mixed-server_test.go +++ b/go/mixed-server_test.go @@ -4,13 +4,13 @@ import ( "testing" ) -func eq_slice(t *testing.T, got, expected []string) { +func eq_slice(t *testing.T, got []WordAndCount, expected []string) { if !(len(got)==len(expected)) { t.Errorf("bad length, got %d expected %d",len(got),len(expected)) return } for i,got_elem := range got { - if !(got_elem == expected[i]) { + if !(got_elem.word == expected[i]) { t.Errorf("slices differ at %d, got %v expected %v", i,got_elem,expected[i]) return |