diff options
Diffstat (limited to 'src/test/run-pass/lib-vec-str-conversions.rs')
| -rw-r--r-- | src/test/run-pass/lib-vec-str-conversions.rs | 14 |
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 cd8b64a8..c85374bf 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() { |