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:
Rob Pike 2009-08-31 13:01:25 -07:00
parent 4962e7ee9b
commit 149e3d332c
8 changed files with 37 additions and 21 deletions

View file

@ -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;