aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/lib-vec-str-conversions.rs
diff options
context:
space:
mode:
authorMarijn Haverbeke <[email protected]>2011-05-06 22:13:13 +0200
committerMarijn Haverbeke <[email protected]>2011-05-06 22:51:19 +0200
commita3ec0b1f643d00b9418e4884bd7caa07bf052201 (patch)
tree82000510ac9c9cf3f0c7cf4ae5f3c6b123b559cb /src/test/run-pass/lib-vec-str-conversions.rs
parentRegister new snapshots. (diff)
downloadrust-a3ec0b1f643d00b9418e4884bd7caa07bf052201.tar.xz
rust-a3ec0b1f643d00b9418e4884bd7caa07bf052201.zip
Rename std modules to be camelcased
(Have fun mergining your stuff with this.)
Diffstat (limited to 'src/test/run-pass/lib-vec-str-conversions.rs')
-rw-r--r--src/test/run-pass/lib-vec-str-conversions.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/test/run-pass/lib-vec-str-conversions.rs b/src/test/run-pass/lib-vec-str-conversions.rs
index 3724d627..cd8b64a8 100644
--- a/src/test/run-pass/lib-vec-str-conversions.rs
+++ b/src/test/run-pass/lib-vec-str-conversions.rs
@@ -1,8 +1,8 @@
// -*- rust -*-
use std;
-import std._str;
-import std._vec;
+import std.Str;
+import std.Vec;
fn test_simple() {
let str s1 = "All mimsy were the borogoves";
@@ -14,12 +14,12 @@ fn test_simple() {
* working, but we should implement is_utf8 before that happens.
*/
- let vec[u8] v = _str.bytes(s1);
- let str s2 = _str.from_bytes(v);
+ let vec[u8] v = Str.bytes(s1);
+ let str s2 = Str.from_bytes(v);
let uint i = 0u;
- let uint n1 = _str.byte_len(s1);
- let uint n2 = _vec.len[u8](v);
+ let uint n1 = Str.byte_len(s1);
+ let uint n2 = Vec.len[u8](v);
assert (n1 == n2);
@@ -33,7 +33,7 @@ fn test_simple() {
}
log "refcnt is";
- log _str.refcount(s1);
+ log Str.refcount(s1);
}
fn main() {