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

Side by Side Diff: tests/language/switch_label_test.dart

Issue 2763823002: Move spaces from before comments to within comments (Closed)
Patch Set: Fix comments Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 // Test switch statement using labels. 4 // Test switch statement using labels.
5 5
6 import "package:expect/expect.dart"; 6 import "package:expect/expect.dart";
7 7
8 class Switcher { 8 class Switcher {
9 9
10 Switcher() { } 10 Switcher() { }
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 Expect.equals(100, s.say1("moo")); 82 Expect.equals(100, s.say1("moo"));
83 Expect.equals(100, s.say1("woof")); 83 Expect.equals(100, s.say1("woof"));
84 Expect.equals(300, s.say1("cockadoodledoo")); 84 Expect.equals(300, s.say1("cockadoodledoo"));
85 85
86 Expect.equals(200, s.say2("moo")); 86 Expect.equals(200, s.say2("moo"));
87 Expect.equals(200, s.say2("woof")); 87 Expect.equals(200, s.say2("woof"));
88 Expect.equals(300, s.say2("")); // Dead unicorn says nothing. 88 Expect.equals(300, s.say2("")); // Dead unicorn says nothing.
89 89
90 Expect.equals(100, s.say3("cow", "moo")); 90 Expect.equals(100, s.say3("cow", "moo"));
91 Expect.equals(200, s.say3("cow", "muh")); 91 Expect.equals(200, s.say3("cow", "muh"));
92 Expect.equals(400, s.say3("cow", "boeh")); // Don't ask. 92 Expect.equals(400, s.say3("cow", "boeh")); // Don't ask.
sra1 2017/03/21 03:28:14 fix?
93 Expect.equals(300, s.say3("dog", "woof")); 93 Expect.equals(300, s.say3("dog", "woof"));
94 Expect.equals(400, s.say3("dog", "boj")); // Ĉu vi parolas Esperanton? 94 Expect.equals(400, s.say3("dog", "boj")); // Ĉu vi parolas Esperanton?
95 Expect.equals(400, s.say3("unicorn", "")); // Still dead. 95 Expect.equals(400, s.say3("unicorn", "")); // Still dead.
96 Expect.equals(500, s.say3("angry bird", "whoooo")); 96 Expect.equals(500, s.say3("angry bird", "whoooo"));
97 } 97 }
98 } 98 }
99 99
100 main() { 100 main() {
101 SwitchLabelTest.testMain(); 101 SwitchLabelTest.testMain();
102 } 102 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698