aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/lib-int.rs
diff options
context:
space:
mode:
authorMarijn Haverbeke <[email protected]>2011-05-12 17:24:54 +0200
committerMarijn Haverbeke <[email protected]>2011-05-12 21:30:44 +0200
commit3816e57fd2a8ab19e4ac6d4b3ddd5b49d5973ff2 (patch)
tree508982ed2f789aedd89eebd529343d9dc88b8e01 /src/test/run-pass/lib-int.rs
parentTransitional change to make extfmt output lowercase module name (diff)
downloadrust-3816e57fd2a8ab19e4ac6d4b3ddd5b49d5973ff2.tar.xz
rust-3816e57fd2a8ab19e4ac6d4b3ddd5b49d5973ff2.zip
Downcase std modules again, move to :: for module dereferencing
This should be a snapshot transition.
Diffstat (limited to 'src/test/run-pass/lib-int.rs')
-rw-r--r--src/test/run-pass/lib-int.rs30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/test/run-pass/lib-int.rs b/src/test/run-pass/lib-int.rs
index a5a9a2a1..20d70ccf 100644
--- a/src/test/run-pass/lib-int.rs
+++ b/src/test/run-pass/lib-int.rs
@@ -1,25 +1,25 @@
use std;
-import std.Int;
-import std.Str.eq;
+import std::_int;
+import std::_str::eq;
fn test_to_str() {
- assert (eq(Int.to_str(0, 10u), "0"));
- assert (eq(Int.to_str(1, 10u), "1"));
- assert (eq(Int.to_str(-1, 10u), "-1"));
- assert (eq(Int.to_str(255, 16u), "ff"));
- assert (eq(Int.to_str(100, 10u), "100"));
+ assert (eq(_int::to_str(0, 10u), "0"));
+ assert (eq(_int::to_str(1, 10u), "1"));
+ assert (eq(_int::to_str(-1, 10u), "-1"));
+ assert (eq(_int::to_str(255, 16u), "ff"));
+ assert (eq(_int::to_str(100, 10u), "100"));
}
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(-3, 2u) == 9);
- assert (Int.pow(-3, 3u) == -27);
- assert (Int.pow(4, 9u) == 262144);
+ 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(-3, 2u) == 9);
+ assert (_int::pow(-3, 3u) == -27);
+ assert (_int::pow(4, 9u) == 262144);
}
fn main() {