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

Unified Diff: tests/corelib/sort_helper.dart

Issue 10701078: Print even less. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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
« tests/corelib/corelib.status ('K') | « tests/corelib/corelib.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/sort_helper.dart
diff --git a/tests/corelib/sort_helper.dart b/tests/corelib/sort_helper.dart
index 7c144b2394d66a77c1e25db96a4ffd75104f6d53..3e9dd77774d49390f40eecc734ac286283537f81 100644
--- a/tests/corelib/sort_helper.dart
+++ b/tests/corelib/sort_helper.dart
@@ -12,7 +12,6 @@ class SortHelper {
}
void printList(List a) {
- if (true) return;
StringBuffer buffer = new StringBuffer();
for (int i = 0; i < a.length; i++) {
if (i != 0) buffer.add(",");
@@ -123,12 +122,13 @@ class SortHelper {
}
void testSort(List a) {
- printList(a);
+ final bool log = false;
+ if (log) printList(a);
sortFunction(a);
- printList(a);
+ if (log) printList(a);
bool sorted = isSorted(a);
Expect.equals(true, sorted);
- print(sorted);
+ if (log) print(sorted);
}
void testInsertionSort(int i1, int i2, int i3, int i4) {
« tests/corelib/corelib.status ('K') | « tests/corelib/corelib.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698