blob: dc5ff2db481a04347568c82b2fe6401004cbb45b [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 num operator *(num other)
/// This operator implements the arithmetic multiply operation.
/// @description Checks that this operator returns correct value.
/// @author vasya
import "../../../Utils/expect.dart";
main() {
Expect.equals(1, 1 * 1);
Expect.equals(0, 1 * 0);
if(!isJS) {
Expect.equals(4294967296, 2147483648 * 2);
Expect.equals(0, 4294967296 * 4294967296);
Expect.equals(0, 281474976710656 * 281474976710656);
}
}