blob: 09110539f302bca56a9c3b51c656379ed2338180 [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.
// @dart = 2.9
/// @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);
}