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

Unified Diff: pkg/kernel/testcases/interpreter/print_test.dart

Issue 2841803002: Add initial tests for Kernel interpreter (Closed)
Patch Set: Add crash when evaluation throws an exception Created 3 years, 8 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
« no previous file with comments | « pkg/kernel/test/interpreter/testing.json ('k') | pkg/kernel/testcases/interpreter/print_test.dart.expect » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/testcases/interpreter/print_test.dart
diff --git a/pkg/kernel/testcases/interpreter/print_test.dart b/pkg/kernel/testcases/interpreter/print_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a74d8ee8ac3e09c9a30fa88d3e24ca6a02e54062
--- /dev/null
+++ b/pkg/kernel/testcases/interpreter/print_test.dart
@@ -0,0 +1,15 @@
+// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
+// 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.
+
+/// Prints different basic literals.
+///
+/// The log of this test is used to verify print is evaluated with the correct
+/// arguments.
+main() {
+ print('hello');
+ print(1);
+ print(true);
+ print(4.2);
+ print(null);
+}
« no previous file with comments | « pkg/kernel/test/interpreter/testing.json ('k') | pkg/kernel/testcases/interpreter/print_test.dart.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698