summaryrefslogtreecommitdiff
path: root/libgo/go/bytes/compare_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/bytes/compare_test.go')
-rw-r--r--libgo/go/bytes/compare_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgo/go/bytes/compare_test.go b/libgo/go/bytes/compare_test.go
index 63522374ee0..f2d81d5310c 100644
--- a/libgo/go/bytes/compare_test.go
+++ b/libgo/go/bytes/compare_test.go
@@ -17,6 +17,8 @@ var compareTests = []struct {
{[]byte("a"), []byte(""), 1},
{[]byte(""), []byte("a"), -1},
{[]byte("abc"), []byte("abc"), 0},
+ {[]byte("abd"), []byte("abc"), 1},
+ {[]byte("abc"), []byte("abd"), -1},
{[]byte("ab"), []byte("abc"), -1},
{[]byte("abc"), []byte("ab"), 1},
{[]byte("x"), []byte("ab"), 1},
@@ -27,6 +29,7 @@ var compareTests = []struct {
{[]byte("abcdefgh"), []byte("abcdefgh"), 0},
{[]byte("abcdefghi"), []byte("abcdefghi"), 0},
{[]byte("abcdefghi"), []byte("abcdefghj"), -1},
+ {[]byte("abcdefghj"), []byte("abcdefghi"), 1},
// nil tests
{nil, nil, 0},
{[]byte(""), nil, 0},