blob: e6314f4df1ceb78c4e4113b5e6b8b79e4203a601 [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);
}