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

Unified Diff: runtime/vm/object_test.cc

Issue 9691005: Implement spawnFunction from the new isolate api. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 months 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
Index: runtime/vm/object_test.cc
===================================================================
--- runtime/vm/object_test.cc (revision 5367)
+++ runtime/vm/object_test.cc (working copy)
@@ -603,6 +603,21 @@
}
+TEST_CASE(StringFormat) {
+ const char* hello_str = "Hello World!";
+ int32_t hello_len = strlen(hello_str);
+ const String& str =
+ String::Handle(String::NewFormatted("Hello %s!", "World"));
+ EXPECT(str.IsInstance());
+ EXPECT(str.IsString());
+ EXPECT(str.IsOneByteString());
+ EXPECT(!str.IsTwoByteString());
+ EXPECT(!str.IsFourByteString());
+ EXPECT(!str.IsNumber());
+ EXPECT(str.Equals(hello_str));
+}
+
+
TEST_CASE(StringConcat) {
// Create strings from concatenated 1-byte empty strings.
{
« lib/isolate/isolate_api.dart ('K') | « runtime/vm/object.cc ('k') | runtime/vm/zone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698