Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(18053)

Issue 6488110: code review 6488110: strings: more thorough Replacer tests. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by nigeltao
Modified:
11 years, 7 months ago
Reviewers:
CC:
rsc, Eric Roshan Eisner, bradfitz, golang-dev
Visibility:
Public.

Description

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.

Patch Set 1 #

Patch Set 2 : diff -r 9e5a84e0fa57 https://code.google.com/p/go #

Patch Set 3 : diff -r 9e5a84e0fa57 https://code.google.com/p/go #

Total comments: 1

Patch Set 4 : diff -r 9e5a84e0fa57 https://code.google.com/p/go #

Patch Set 5 : diff -r 50457a54c26c https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -60 lines) Patch
M src/pkg/strings/replace_test.go View 1 2 3 3 chunks +259 lines, -60 lines 0 comments Download

Messages

Total messages: 6
nigeltao
Hello rsc@golang.org (cc: bradfitz@golang.org, eric.d.eisner@gmail.com, golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
11 years, 7 months ago (2012-09-11 03:12:35 UTC) #1
rsc
LGTM http://codereview.appspot.com/6488110/diff/4001/src/pkg/strings/replace_test.go File src/pkg/strings/replace_test.go (right): http://codereview.appspot.com/6488110/diff/4001/src/pkg/strings/replace_test.go#newcode74 src/pkg/strings/replace_test.go:74: "i", "i", Please add "xx", "xx", "x", "X", ...
11 years, 7 months ago (2012-09-11 03:21:22 UTC) #2
rsc
Oh, and the TODOs involving "" are definitely bugs to be fixed.
11 years, 7 months ago (2012-09-11 03:23:13 UTC) #3
Eric Roshan Eisner
On 2012/09/11 03:12:35, nigeltao wrote: > Hello mailto:rsc@golang.org (cc: mailto:bradfitz@golang.org, mailto:eric.d.eisner@gmail.com, > mailto:golang-dev@googlegroups.com), > > ...
11 years, 7 months ago (2012-09-11 03:28:57 UTC) #4
nigeltao
On 11 September 2012 13:28, <eric.d.eisner@gmail.com> wrote: > LGTM. I agree with the placement of ...
11 years, 7 months ago (2012-09-11 04:37:37 UTC) #5
nigeltao
11 years, 7 months ago (2012-09-11 04:40:22 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=46a4f787e8b7 ***

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
http://codereview.appspot.com/6488110
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b