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

Unified Diff: tests/corelib/src/StringBaseVMTest.dart

Issue 8676001: Implement type checking of list literals (issue 220). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/src/StringBaseVMTest.dart
===================================================================
--- tests/corelib/src/StringBaseVMTest.dart (revision 1805)
+++ tests/corelib/src/StringBaseVMTest.dart (working copy)
@@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test program for testing class 'StringBase' (currently VM specific).
-// We use that flag to disable privacy.
-// VMOptions=--expose_core_impl
#library("StringBaseTest.dart");
#import("dart:coreimpl");
@@ -25,18 +23,14 @@
}
static testInterpolation() {
- Expect.equals("", StringBase._interpolate([]));
- Expect.equals("Hello World",
- StringBase._interpolate(["Hello", " ", "World"]));
- Expect.equals("Hello StringBase Tester!",
- StringBase._interpolate(["Hello ", new StringBaseTest(), "!"]));
-
var answer = 40 + 2;
var s = "The answer is $answer.";
Expect.equals("The answer is 42.", s);
- int numBottles = 99;
+ int numBottles = 33;
String wall = "wall";
+ s = "${numBottles*3} bottles of beer on the $wall.";
+ Expect.equals("99 bottles of beer on the wall.", s);
}
static testCreation() {
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698