]> Cypherpunks repositories - gostls13.git/commit
strings: more thorough Replacer tests.
authorNigel Tao <nigeltao@golang.org>
Tue, 11 Sep 2012 04:40:08 +0000 (14:40 +1000)
committerNigel Tao <nigeltao@golang.org>
Tue, 11 Sep 2012 04:40:08 +0000 (14:40 +1000)
commitb19c32acce20c9e7ef54111bfecae97f0906fa1a
tree027f5d01f677cc3f4ac099056d68337efc69ade3
parentb4840366ffbd0dd1124d1be3153145416aea7250
strings: more thorough Replacer tests.

This verifies existing behavior. Some replacements are arguably wrong
(these are marked with TODO) but changing behavior is left for a
follow-up CL.

Also fix that BenchmarkGenericMatch wasn't actually matching anything.

R=rsc, eric.d.eisner
CC=bradfitz, golang-dev
https://golang.org/cl/6488110
src/pkg/strings/replace_test.go