Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Issue 9969159: - Remove more String operator + from tests. (Closed)

Created:
8 years, 8 months ago by Ivan Posva
Modified:
8 years, 8 months ago
Reviewers:
hausner
CC:
reviews_dartlang.org
Visibility:
Public.

Description

- Remove more String operator + from tests. Committed: https://code.google.com/p/dart/source/detail?r=6527

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -6 lines) Patch
M tests/language/src/OptimizationTest.dart View 2 chunks +11 lines, -3 lines 0 comments Download
M tests/language/src/StringConcatTest.dart View 1 chunk +1 line, -1 line 2 comments Download
M tests/language/src/SuperOperatorTest.dart View 2 chunks +5 lines, -2 lines 4 comments Download

Messages

Total messages: 4 (0 generated)
Ivan Posva
8 years, 8 months ago (2012-04-11 17:40:32 UTC) #1
hausner
I think StringConcatTest can be removed now. Otherwise, lgtm. https://chromiumcodereview.appspot.com/9969159/diff/1/tests/language/src/StringConcatTest.dart File tests/language/src/StringConcatTest.dart (right): https://chromiumcodereview.appspot.com/9969159/diff/1/tests/language/src/StringConcatTest.dart#newcode13 tests/language/src/StringConcatTest.dart:13: ...
8 years, 8 months ago (2012-04-11 18:01:24 UTC) #2
hausner
I just see that Kasper asked you to replace s.concat(x) with "$s$x" in another review. ...
8 years, 8 months ago (2012-04-11 18:10:25 UTC) #3
Ivan Posva
8 years, 8 months ago (2012-04-13 13:29:17 UTC) #4
Thanks, I'll keep using string interpolation for now.

-Ivan

https://chromiumcodereview.appspot.com/9969159/diff/1/tests/language/src/Stri...
File tests/language/src/StringConcatTest.dart (right):

https://chromiumcodereview.appspot.com/9969159/diff/1/tests/language/src/Stri...
tests/language/src/StringConcatTest.dart:13: static final Tag = "version-" +
V.Version;
On 2012/04/11 18:01:24, hausner wrote:
> There are many more cases of string + in this test. Maybe the whole test
should
> be removed, it hardly makes any sense now.

I only addressed dynamically executed + operations on Strings. This one is a
constant and handled in the compiler. Since I did not have your pending change
this was not flagged.

https://chromiumcodereview.appspot.com/9969159/diff/1/tests/language/src/Supe...
File tests/language/src/SuperOperatorTest.dart (right):

https://chromiumcodereview.appspot.com/9969159/diff/1/tests/language/src/Supe...
tests/language/src/SuperOperatorTest.dart:30: super + ("${s}${s}");  // Call
A.operator+(this, s + s).
On 2012/04/11 18:01:24, hausner wrote:
> + in comment is meaningless.

Done.

Powered by Google App Engine
This is Rietveld 408576698