| // 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 num pow(num x, num exponent) |

| /// If [x] is an int and exponent is a non-negative int, the result is an int, |

| /// otherwise both arguments are converted to doubles first, and the result is |

| /// @description Checks that if [x] is an int and [y] is a non-negative int, |

| /// the result is an int. |

| import "dart:math" as Math; |

| import "../../Utils/expect.dart"; |

| Expect.isTrue(Math.pow(0, 0) is int); |

| Expect.isTrue(Math.pow(-5, 0) is int); |

| Expect.isTrue(Math.pow(100, 0) is int); |

| Expect.isTrue(Math.pow(1, 1) is int); |

| Expect.isTrue(Math.pow(1000, 1000) is int); |