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

Side by Side Diff: tests/kernel/unsorted/simple_literal_test.dart

Issue 2454993003: Remove custom expect.dart from Kernel tests (Closed)
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Tests of literals (and imports, return, ==, and static methods). 5 // Tests of literals (and imports, return, ==, and static methods).
6 import 'expect.dart'; 6 import 'package:expect/expect.dart';
7 7
8 test0() { 8 test0() {
9 return 'Hello, world!'; 9 return 'Hello, world!';
10 } 10 }
11 11
12 test1() { 12 test1() {
13 return 42; 13 return 42;
14 } 14 }
15 15
16 test2() { 16 test2() {
(...skipping 19 matching lines...) Expand all
36 main() { 36 main() {
37 Expect.isTrue(test0() == 'Hello, world!'); 37 Expect.isTrue(test0() == 'Hello, world!');
38 Expect.isTrue(test1() == 42); 38 Expect.isTrue(test1() == 42);
39 Expect.isTrue(test2() == 2.71828); 39 Expect.isTrue(test2() == 2.71828);
40 Expect.isTrue(test3() == 6.022e23); 40 Expect.isTrue(test3() == 6.022e23);
41 Expect.isTrue(test4()); 41 Expect.isTrue(test4());
42 Expect.isTrue(test5() == false); 42 Expect.isTrue(test5() == false);
43 Expect.isTrue( 43 Expect.isTrue(
44 test6() == 1405006117752879898543142606244511569936384000000000); 44 test6() == 1405006117752879898543142606244511569936384000000000);
45 } 45 }
OLDNEW
« no previous file with comments | « tests/kernel/unsorted/return_test.dart ('k') | tests/kernel/unsorted/string_concatenation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698