blob: 205d4d5f804450d60532e659f469a30bf1a8195f [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 int floor()
* Returns this.
* @description Checks that this method returns this.
* @author vasya
*/
import "../../../Utils/expect.dart";
main() {
Expect.equals(1, 1.floor());
Expect.equals(-1, (-1).floor());
Expect.equals(15, 15.floor());
Expect.equals(-15, (-15).floor());
Expect.equals(2147483647, 2147483647.floor());
Expect.equals(-4294967295, (-4294967295).floor());
Expect.equals(9223372036854775807, 9223372036854775807.floor());
Expect.equals(-1844674407370955161, (-1844674407370955161).floor());
}