diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-02-10 06:02:38 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-02-10 06:02:38 +0000 |
commit | d54fc074734ea7467a0861c861b145c8ef740bf4 (patch) | |
tree | fe1dad02b57206be8eeb4f61819b2f677ea99ee4 /libgo/go/regexp/syntax/parse_test.go | |
parent | 8e29a61c2dc3d591cba39c4f4e8933a76493b22f (diff) |
compiler, libgo: Permit testing package when test imports it circularly.
From-SVN: r195931
Diffstat (limited to 'libgo/go/regexp/syntax/parse_test.go')
-rw-r--r-- | libgo/go/regexp/syntax/parse_test.go | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/libgo/go/regexp/syntax/parse_test.go b/libgo/go/regexp/syntax/parse_test.go index e247cf203ac..81fd9dc0136 100644 --- a/libgo/go/regexp/syntax/parse_test.go +++ b/libgo/go/regexp/syntax/parse_test.go @@ -2,12 +2,11 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package syntax_test +package syntax import ( "bytes" "fmt" - . "regexp/syntax" "testing" "unicode" ) @@ -413,13 +412,13 @@ func TestFoldConstants(t *testing.T) { if unicode.SimpleFold(i) == i { continue } - if last == -1 && MinFold != i { - t.Errorf("MinFold=%#U should be %#U", MinFold, i) + if last == -1 && minFold != i { + t.Errorf("minFold=%#U should be %#U", minFold, i) } last = i } - if MaxFold != last { - t.Errorf("MaxFold=%#U should be %#U", MaxFold, last) + if maxFold != last { + t.Errorf("maxFold=%#U should be %#U", maxFold, last) } } @@ -430,11 +429,11 @@ func TestAppendRangeCollapse(t *testing.T) { // Note that we are not calling cleanClass. var r []rune for i := rune('A'); i <= 'Z'; i++ { - r = AppendRange(r, i, i) - r = AppendRange(r, i+'a'-'A', i+'a'-'A') + r = appendRange(r, i, i) + r = appendRange(r, i+'a'-'A', i+'a'-'A') } if string(r) != "AZaz" { - t.Errorf("AppendRange interlaced A-Z a-z = %s, want AZaz", string(r)) + t.Errorf("appendRange interlaced A-Z a-z = %s, want AZaz", string(r)) } } |