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

Unified Diff: tests/lib/math/point_test.dart

Issue 64373004: Remove default values for point. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « sdk/lib/math/point.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/math/point_test.dart
diff --git a/tests/lib/math/point_test.dart b/tests/lib/math/point_test.dart
index f15c6353d27f4fa23182a7f4e38ced98310e714d..8d9ab72663ce2b4323a727455c1484818b71359f 100644
--- a/tests/lib/math/point_test.dart
+++ b/tests/lib/math/point_test.dart
@@ -9,14 +9,14 @@ import 'package:unittest/unittest.dart';
main() {
test('constructor', () {
- var point = new Point();
+ var point = new Point(0, 0);
expect(point.x, 0);
expect(point.y, 0);
expect('$point', 'Point(0, 0)');
});
test('constructor X', () {
- var point = new Point<int>(10);
+ var point = new Point<int>(10, 0);
expect(point.x, 10);
expect(point.y, 0);
expect('$point', 'Point(10, 0)');
« no previous file with comments | « sdk/lib/math/point.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698