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