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

Unified Diff: test/priority_queue_test.dart

Issue 1638163002: Modernize the package's style. (Closed) Base URL: git@github.com:dart-lang/collection@master
Patch Set: Created 4 years, 11 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
Index: test/priority_queue_test.dart
diff --git a/test/priority_queue_test.dart b/test/priority_queue_test.dart
index 264bf94fbdd5f5658c3407cbf9a599385b810f4d..3d1fe6ef50046896120409c9bca06362857dd32e 100644
--- a/test/priority_queue_test.dart
+++ b/test/priority_queue_test.dart
@@ -4,9 +4,10 @@
/// Tests priority queue implementations utilities.
-import "package:collection/priority_queue.dart";
import "package:test/test.dart";
+import "package:collection/priority_queue.dart";
+
void main() {
testInt(() => new HeapPriorityQueue<int>());
testCustom((comparator) => new HeapPriorityQueue<C>(comparator));
@@ -38,11 +39,9 @@ void testCustom(PriorityQueue<C> create(comparator)) {
}
}
-/**
- * Test that a queue behaves correctly.
- *
- * The elements must be in priority order, from highest to lowest.
- */
+/// Test that a queue behaves correctly.
+///
+/// The elements must be in priority order, from highest to lowest.
void testQueue(String name, PriorityQueue create(), List elements, notElement) {
test(name, () => testQueueBody(create, elements, notElement));
}

Powered by Google App Engine
This is Rietveld 408576698