diff options
| author | Keith Randall <khr@golang.org> | 2018-03-03 10:28:58 -0800 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2018-03-04 17:49:25 +0000 |
| commit | 45964e4f9c950863adcaeb62fbe49f3fa913f27d (patch) | |
| tree | bb07b6ae9f12caa6156932ff236ce3c4c42147e0 /src/bytes/bytes_test.go | |
| parent | 89ae7045f395de8eb4085e3ac8c1ebf59b029965 (diff) | |
| download | go-45964e4f9c950863adcaeb62fbe49f3fa913f27d.tar.xz | |
internal/bytealg: move Count to bytealg
Move bytes.Count and strings.Count to bytealg.
Update #19792
Change-Id: I3e4e14b504a0b71758885bb131e5656e342cf8cb
Reviewed-on: https://go-review.googlesource.com/98495
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/bytes/bytes_test.go')
| -rw-r--r-- | src/bytes/bytes_test.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/bytes/bytes_test.go b/src/bytes/bytes_test.go index 1e56571c73..55a22bae22 100644 --- a/src/bytes/bytes_test.go +++ b/src/bytes/bytes_test.go @@ -410,10 +410,6 @@ func TestCountByte(t *testing.T) { if p != j+1 { t.Errorf("TestCountByte.Count(%q, 100) = %d", b[i:i+window], p) } - pGeneric := CountGeneric(b[i:i+window], []byte{100}) - if pGeneric != j+1 { - t.Errorf("TestCountByte.CountGeneric(%q, 100) = %d", b[i:i+window], p) - } } } @@ -461,10 +457,6 @@ func TestCountByteNoMatch(t *testing.T) { if p != 0 { t.Errorf("TestCountByteNoMatch(%q, 0) = %d", b[i:i+window], p) } - pGeneric := CountGeneric(b[i:i+window], []byte{0}) - if pGeneric != 0 { - t.Errorf("TestCountByteNoMatch.CountGeneric(%q, 100) = %d", b[i:i+window], p) - } for j := 0; j < window; j++ { b[i+j] = byte(0) } |
