1
- // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
@@ -137,15 +137,6 @@ impl<A:ToStr> ToStr for @[A] {
137
137
}
138
138
}
139
139
140
- impl<A:ToStr> ToStr for @A {
141
- #[inline(always)]
142
- pure fn to_str(&self) -> ~str { ~" @" + ( * * self ) . to_str ( ) }
143
- }
144
- impl <A : ToStr > ToStr for ~A {
145
- #[ inline( always) ]
146
- pure fn to_str( & self ) -> ~str { ~"~" + ( * * self ) . to_str ( ) }
147
- }
148
-
149
140
#[cfg(test)]
150
141
#[allow(non_implicitly_copyable_typarams)]
151
142
mod tests {
@@ -170,19 +161,12 @@ mod tests {
170
161
}
171
162
172
163
#[ test]
173
- #[ ignore]
174
164
fn test_vectors ( ) {
175
165
let x: ~[ int ] = ~[ ] ;
176
- assert x. to_str ( ) == ~"~ [ ] ";
177
- assert ( ~[ 1 ] ) . to_str ( ) == ~"~ [ 1 ] ";
178
- assert ( ~[ 1 , 2 , 3 ] ) . to_str ( ) == ~"~ [ 1 , 2 , 3 ] ";
166
+ assert x. to_str ( ) == ~"[ ] ";
167
+ assert ( ~[ 1 ] ) . to_str ( ) == ~"[ 1 ] ";
168
+ assert ( ~[ 1 , 2 , 3 ] ) . to_str ( ) == ~"[ 1 , 2 , 3 ] ";
179
169
assert ( ~[ ~[ ] , ~[ 1 ] , ~[ 1 , 1 ] ] ) . to_str ( ) ==
180
- ~"~[ ~[ ] , ~[ 1 ] , ~[ 1 , 1 ] ] ";
181
- }
182
-
183
- #[ test]
184
- fn test_pointer_types ( ) {
185
- assert ( @1 ) . to_str ( ) == ~"@1 ";
186
- assert ( ~( true , false ) ) . to_str ( ) == ~"~( true , false ) ";
170
+ ~"[ [ ] , [ 1 ] , [ 1 , 1 ] ] ";
187
171
}
188
172
}
0 commit comments