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

Unified Diff: test/dart_codegen/expect/core/num.dart

Issue 963593002: Disable formatting and add new-lines to make tests faster. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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/dart_codegen/expect/core/num.dart
diff --git a/test/dart_codegen/expect/core/num.dart b/test/dart_codegen/expect/core/num.dart
index c6c33bf0e3db5e45a835175e592341d0175753ed..9075971118e8916e257fc4f180ffb6e6a087db16 100644
--- a/test/dart_codegen/expect/core/num.dart
+++ b/test/dart_codegen/expect/core/num.dart
@@ -1,60 +1,58 @@
part of dart.core;
-
-abstract class num implements Comparable<num> {
- bool operator ==(Object other);
- int get hashCode;
- int compareTo(num other);
- num operator +(num other);
- num operator -(num other);
- num operator *(num other);
- num operator %(num other);
- double operator /(num other);
- int operator ~/(num other);
- num operator -();
- num remainder(num other);
- bool operator <(num other);
- bool operator <=(num other);
- bool operator >(num other);
- bool operator >=(num other);
- bool get isNaN;
- bool get isNegative;
- bool get isInfinite;
- bool get isFinite;
- num abs();
- num get sign;
- int round();
- int floor();
- int ceil();
- int truncate();
- double roundToDouble();
- double floorToDouble();
- double ceilToDouble();
- double truncateToDouble();
- num clamp(num lowerLimit, num upperLimit);
- int toInt();
- double toDouble();
- String toStringAsFixed(int fractionDigits);
- String toStringAsExponential([int fractionDigits]);
- String toStringAsPrecision(int precision);
- String toString();
- static num parse(String input, [num onError(String input)]) {
- String source = input.trim();
- _parseError = false;
- num result = int.parse(source, onError: _onParseErrorInt);
- if (!_parseError) return result;
- _parseError = false;
- result = double.parse(source, _onParseErrorDouble);
- if (!_parseError) return result;
- if (onError == null) throw new FormatException(input);
- return onError(input);
+ abstract class num implements Comparable<num> {bool operator ==(Object other);
+ int get hashCode;
+ int compareTo(num other);
+ num operator +(num other);
+ num operator -(num other);
+ num operator *(num other);
+ num operator %(num other);
+ double operator /(num other);
+ int operator ~/(num other);
+ num operator -();
+ num remainder(num other);
+ bool operator <(num other);
+ bool operator <=(num other);
+ bool operator >(num other);
+ bool operator >=(num other);
+ bool get isNaN;
+ bool get isNegative;
+ bool get isInfinite;
+ bool get isFinite;
+ num abs();
+ num get sign;
+ int round();
+ int floor();
+ int ceil();
+ int truncate();
+ double roundToDouble();
+ double floorToDouble();
+ double ceilToDouble();
+ double truncateToDouble();
+ num clamp(num lowerLimit, num upperLimit);
+ int toInt();
+ double toDouble();
+ String toStringAsFixed(int fractionDigits);
+ String toStringAsExponential([int fractionDigits]);
+ String toStringAsPrecision(int precision);
+ String toString();
+ static num parse(String input, [num onError(String input)]) {
+ String source = input.trim();
+ _parseError = false;
+ num result = int.parse(source, onError: _onParseErrorInt);
+ if (!_parseError) return result;
+ _parseError = false;
+ result = double.parse(source, _onParseErrorDouble);
+ if (!_parseError) return result;
+ if (onError == null) throw new FormatException(input);
+ return onError(input);
}
- static bool _parseError = false;
- static int _onParseErrorInt(String _) {
- _parseError = true;
- return 0;
+ static bool _parseError = false;
+ static int _onParseErrorInt(String _) {
+ _parseError = true;
+ return 0;
}
- static double _onParseErrorDouble(String _) {
- _parseError = true;
- return 0.0;
+ static double _onParseErrorDouble(String _) {
+ _parseError = true;
+ return 0.0;
}
}

Powered by Google App Engine
This is Rietveld 408576698