]> git.lizzy.rs Git - rust.git/commitdiff
Un-xfail zip-same-length
authorTim Chevalier <chevalier@alum.wellesley.edu>
Wed, 31 Aug 2011 00:19:13 +0000 (17:19 -0700)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Wed, 31 Aug 2011 00:19:13 +0000 (17:19 -0700)
There was a type error that was getting reported poorly. Fixed it.
(Now to figure out why the error was reported so poorly...)

src/test/run-pass/zip-same-length.rs

index 1a9dafd65754fd485424842290631571cb2d862d..5427f548d3555b13c82cdabaf1fd42a602b740c2 100644 (file)
@@ -1,6 +1,3 @@
-// xfail-stage1
-// xfail-stage2
-// xfail-stage3
 // In this case, the code should compile and should
 // succeed at runtime
 use std;
@@ -20,6 +17,7 @@ fn main() {
     check same_length(chars, ints);
     let ps = zip(chars, ints);
 
+    check is_not_empty(ps);
     assert (head(ps) == ('a', 1u));
-    assert (last(ps) == ('j' as u8, 10u));
-}
\ No newline at end of file
+    assert (last_total(ps) == (j as char, 10u));
+}