blob: 11d9db2ee73e960058848f3cae8f86fb6342d9ee [file] [log] [blame]
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/**
* @assertion double operator *(num other)
* @description Checks that if both operands are infinite the result is infinity
* @author pagolubev
*/
import "../../../Utils/expect.dart";
main() {
Expect.equals(double.infinity, double.infinity * double.infinity);
Expect.equals(double.infinity,
double.negativeInfinity * double.negativeInfinity);
Expect.equals(double.negativeInfinity,
double.infinity * double.negativeInfinity);
Expect.equals(double.negativeInfinity,
double.negativeInfinity * double.infinity);
}