Begin running the test for int::pow
Somehow this has been disabled forever
This commit is contained in:
parent
9ec5e90608
commit
45b00935f3
1 changed files with 5 additions and 2 deletions
|
@ -15,11 +15,14 @@ fn test_pow() {
|
|||
assert (int::pow(0, 0u) == 1);
|
||||
assert (int::pow(0, 1u) == 0);
|
||||
assert (int::pow(0, 2u) == 0);
|
||||
assert (int::pow(-1, 0u) == -1);
|
||||
assert (int::pow(-1, 0u) == 1);
|
||||
assert (int::pow(1, 0u) == 1);
|
||||
assert (int::pow(-3, 2u) == 9);
|
||||
assert (int::pow(-3, 3u) == -27);
|
||||
assert (int::pow(4, 9u) == 262144);
|
||||
}
|
||||
|
||||
fn main() { test_to_str(); }
|
||||
fn main() {
|
||||
test_to_str();
|
||||
test_pow();
|
||||
}
|
Loading…
Reference in a new issue