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

Unified Diff: tests/language/generic_functions_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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: tests/language/generic_functions_test.dart
diff --git a/tests/language/generic_functions_test.dart b/tests/language/generic_functions_test.dart
index f7ae6bb2c47be2e448ce84deed94a80452f2a60e..6d22283a88bdab04a0a06a13a540a34f56a4f907 100644
--- a/tests/language/generic_functions_test.dart
+++ b/tests/language/generic_functions_test.dart
@@ -19,8 +19,9 @@ class BinaryTreeNode<K extends Comparable<K>, V> {
final BinaryTreeNode<K, V> _right;
BinaryTreeNode(this._key, this._value,
- {BinaryTreeNode<K, V> left: null, BinaryTreeNode<K, V> right: null}) :
- _left = left, _right = right;
+ {BinaryTreeNode<K, V> left: null, BinaryTreeNode<K, V> right: null})
+ : _left = left,
+ _right = right;
BinaryTreeNode<K, V> insert(K key, V value) {
int c = key.compareTo(_key);
@@ -37,13 +38,10 @@ class BinaryTreeNode<K extends Comparable<K>, V> {
return new BinaryTreeNode<K, V>(_key, _value, left: left, right: right);
}
- BinaryTreeNode<K, U> map<U>(U f(V x)){
+ BinaryTreeNode<K, U> map<U>(U f(V x)) {
var _map = (BinaryTreeNode<K, V> t, U f(V x)) => mapOpt<K, V, U>(t, f);
- return new BinaryTreeNode<K, U>(
- _key,
- f(_value),
- left: _map(_left, f),
- right: _map(_right, f));
+ return new BinaryTreeNode<K, U>(_key, f(_value),
+ left: _map(_left, f), right: _map(_right, f));
}
S foldPre<S>(S init, S f(V t, S s)) {

Powered by Google App Engine
This is Rietveld 408576698