mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
rearrange some constants. unicode package now defines MaxRune and ReplacementChar.
utf8 package imports unicode to get those definitions. regenerate dependencies. R=rsc DELTA=41 (19 added, 3 deleted, 19 changed) OCL=34123 CL=34129
This commit is contained in:
parent
4962e7ee9b
commit
149e3d332c
8 changed files with 37 additions and 21 deletions
|
|
@ -2,9 +2,10 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package strings
|
||||
package strings_test
|
||||
|
||||
import (
|
||||
. "strings";
|
||||
"testing";
|
||||
)
|
||||
|
||||
|
|
@ -92,7 +93,7 @@ var explodetests = []ExplodeTest {
|
|||
}
|
||||
func TestExplode(t *testing.T) {
|
||||
for _, tt := range explodetests {
|
||||
a := explode(tt.s, tt.n);
|
||||
a := Split(tt.s, "", tt.n);
|
||||
if !eq(a, tt.a) {
|
||||
t.Errorf("explode(%q, %d) = %v; want %v", tt.s, tt.n, a, tt.a);
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue