| Index: tests/html/point_test.dart
|
| diff --git a/tests/html/point_test.dart b/tests/html/point_test.dart
|
| index 7a4fdbded4935a54450c03d67aefd077fb0a527e..ef1fe5a6c42f1357e3d2c3bab48a017f55cde9bb 100644
|
| --- a/tests/html/point_test.dart
|
| +++ b/tests/html/point_test.dart
|
| @@ -112,4 +112,14 @@ main() {
|
| var c = new Point(1, 0);
|
| expect(a.hashCode == c.hashCode, isFalse);
|
| });
|
| +
|
| + test('magnitute', () {
|
| + var a = new Point(5, 10);
|
| + var b = new Point(0, 0);
|
| + expect(a.magnitude, a.distanceTo(b));
|
| + expect(b.magnitude, 0);
|
| +
|
| + var c = new Point(-5, -10);
|
| + expect(c.magnitude, a.distanceTo(b));
|
| + });
|
| }
|
|
|