Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
thde committed Aug 5, 2022
1 parent b913960 commit afc5536
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions dictionary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ func TestDictionary_Add(t *testing.T) {
[]string{"hi"},
&Dictionary{
counter: map[string]map[string]int{
"^": {"h": 1},
"^h": {"i": 1},
"^": {"h": 1},
"^h": {"i": 1},
"^hi": {"$": 1},
"h": {"i": 1},
"hi": {"$": 1},
"i": {"$": 1},
"h": {"i": 1},
"hi": {"$": 1},
"i": {"$": 1},
},
PrefixLength: 4,
},
Expand Down
6 changes: 3 additions & 3 deletions generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

func TestGenerator_Word(t *testing.T) {
// ensure we get reproducable results
// ensure we get reproducible results
random = rand.New(rand.NewSource(1))

type fields struct {
Expand All @@ -22,15 +22,15 @@ func TestGenerator_Word(t *testing.T) {
name: "simple",
fields: fields{
Probabilities: map[string]map[string]float32{"^": {"b": 1.0}, "b": {"$": 1.0}},
MaxSequences: 2,
MaxSequences: 2,
},
want: "b",
},
{
name: "empty",
fields: fields{
Probabilities: map[string]map[string]float32{},
MaxSequences: 2,
MaxSequences: 2,
},
want: "",
},
Expand Down

0 comments on commit afc5536

Please sign in to comment.