suffixarray: fix construction bug

Previously, group numbers were updated while being read,
sometimes leading to inconsistencies.

R=gri, gri1
CC=golang-dev
https://golang.org/cl/4121045
This commit is contained in:
Eric Eisner 2011-01-31 13:13:02 -08:00 committed by Robert Griesemer
parent 61978aa579
commit d93b2f384d
2 changed files with 24 additions and 12 deletions

View file

@ -99,6 +99,12 @@ var testCases = []testCase{
"to (come|the)?",
},
},
{
"godoc simulation",
"package main\n\nimport(\n \"rand\"\n ",
[]string{},
},
}