blob: ea591241313432df89830eab6c64758b6e17fdf9 [file] [log] [blame]
// Copyright (c) 2017, 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 log(num x)
/// Converts [x] to a double and returns the natural logarithm of the value.
/// @description Checks that an argument of log should be a number (a decimal
/// or hexadecimal integer, or a decimal double).
/// @author ngl@unipro.ru
import "dart:math" as Math;
import "../../Utils/expect.dart";
main() {
var a1 = Math.exp(1);
var a2 = Math.exp(0x0001);
var a3 = Math.exp(1.0);
Expect.equals(a1, a2);
Expect.equals(a1, a3);
}