Skip to content

Commit 45b0093

Browse files
committed
Begin running the test for int::pow
Somehow this has been disabled forever
1 parent 9ec5e90 commit 45b0093

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/test/run-pass/lib-int.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@ fn test_pow() {
1515
assert (int::pow(0, 0u) == 1);
1616
assert (int::pow(0, 1u) == 0);
1717
assert (int::pow(0, 2u) == 0);
18-
assert (int::pow(-1, 0u) == -1);
18+
assert (int::pow(-1, 0u) == 1);
1919
assert (int::pow(1, 0u) == 1);
2020
assert (int::pow(-3, 2u) == 9);
2121
assert (int::pow(-3, 3u) == -27);
2222
assert (int::pow(4, 9u) == 262144);
2323
}
2424

25-
fn main() { test_to_str(); }
25+
fn main() {
26+
test_to_str();
27+
test_pow();
28+
}

0 commit comments

Comments
 (0)