Skip to content

Commit

Permalink
fix(convert test): use a new random source in the test to avoid indet…
Browse files Browse the repository at this point in the history
…ermenistic test results
  • Loading branch information
Pavel Petrukhin committed Jun 9, 2020
1 parent 1bd3ff7 commit 6407db4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions convert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,16 +181,16 @@ func (src *testShuffleSource) Int63() int64 {
func (*testShuffleSource) Seed(int64) {}

func TestShuffleSource(t *testing.T) {
var src testShuffleSource
runner := func(str string) string {
var src testShuffleSource
return ShuffleSource(str, &src)
}

runTestCases(t, runner, _M{
"": "",
"facgbheidjk": "bkgfijached",
"尝试中文怎么样": "试怎么文中样尝",
"zh英文hun排": "英nuh排文zh",
"尝试中文怎么样": "怎试么中样尝文",
"zh英文hun排": "zuhh文n英排",
})
}

Expand Down

0 comments on commit 6407db4

Please sign in to comment.