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

Side by Side Diff: frog/tests/leg/boolified_operator_test.dart

Issue 10229002: test rename overhaul: step 10 - crypto tests, and add back other tests commited (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #library("boolified_operator_test.dart");
Emily Fortuna 2012/04/28 00:06:14 love that test name.
5 #import("compiler_helper.dart"); 6 #import("compiler_helper.dart");
6 7
7 final String TEST_EQUAL = @""" 8 final String TEST_EQUAL = @"""
8 foo(param0, param1) { 9 foo(param0, param1) {
9 if (param0 == param1) return 0; 10 if (param0 == param1) return 0;
10 return 1; 11 return 1;
11 } 12 }
12 """; 13 """;
13 14
14 final String TEST_EQUAL_NULL = @""" 15 final String TEST_EQUAL_NULL = @"""
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 Expect.isTrue(generated.contains('leB')); 66 Expect.isTrue(generated.contains('leB'));
66 67
67 generated = compile(TEST_GREATER, 'foo'); 68 generated = compile(TEST_GREATER, 'foo');
68 Expect.isFalse(generated.contains('=== true')); 69 Expect.isFalse(generated.contains('=== true'));
69 Expect.isTrue(generated.contains('gtB')); 70 Expect.isTrue(generated.contains('gtB'));
70 71
71 generated = compile(TEST_GREATER_EQUAL, 'foo'); 72 generated = compile(TEST_GREATER_EQUAL, 'foo');
72 Expect.isFalse(generated.contains('=== true')); 73 Expect.isFalse(generated.contains('=== true'));
73 Expect.isTrue(generated.contains('geB')); 74 Expect.isTrue(generated.contains('geB'));
74 } 75 }
OLDNEW
« no previous file with comments | « no previous file | frog/tests/leg/src/BoolifiedOperatorTest.dart » ('j') | frog/tests/leg_only/leg_only.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698