Skip to content

Commit

Permalink
Added test input words less than 3 characters since they *should* be …
Browse files Browse the repository at this point in the history
…ignored.
  • Loading branch information
schwartzm committed Jun 26, 2019
1 parent 0bb3fa5 commit 23477ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wordfrequency/wordfrequency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import (

func TestGetWordFrequency(t *testing.T) {
input := bytes.NewBufferString(
"hello WORLD Hello world World hello cats HELLO cats dogs")
`hello WORLD Hello so world i at
World hello cats HELLO cats dogs`)

/* NOTE: DeepEqual nuance: Can't compare [4]Word with
* []Word, because Array != Slice.
Expand Down

0 comments on commit 23477ed

Please sign in to comment.