Skip to content

Commit 4c5f625

Browse files
committed
Fix some vector function failure tests. Closes #8698
1 parent 2c0f9bd commit 4c5f625

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/libstd/vec.rs

+4-8
Original file line numberDiff line numberDiff line change
@@ -3154,7 +3154,6 @@ mod tests {
31543154
}
31553155
}
31563156

3157-
#[ignore] // FIXME #8698
31583157
#[test]
31593158
#[should_fail]
31603159
fn test_map_fail() {
@@ -3164,12 +3163,11 @@ mod tests {
31643163
if i == 2 {
31653164
fail!()
31663165
}
3167-
i += 0;
3166+
i += 1;
31683167
~[(~0, @0)]
31693168
};
31703169
}
31713170

3172-
#[ignore] // FIXME #8698
31733171
#[test]
31743172
#[should_fail]
31753173
fn test_flat_map_fail() {
@@ -3179,12 +3177,11 @@ mod tests {
31793177
if i == 2 {
31803178
fail!()
31813179
}
3182-
i += 0;
3180+
i += 1;
31833181
~[(~0, @0)]
31843182
};
31853183
}
31863184

3187-
#[ignore] // FIXME #8698
31883185
#[test]
31893186
#[should_fail]
31903187
fn test_rposition_fail() {
@@ -3194,12 +3191,11 @@ mod tests {
31943191
if i == 2 {
31953192
fail!()
31963193
}
3197-
i += 0;
3194+
i += 1;
31983195
false
31993196
};
32003197
}
32013198

3202-
#[ignore] // FIXME #8698
32033199
#[test]
32043200
#[should_fail]
32053201
fn test_permute_fail() {
@@ -3209,7 +3205,7 @@ mod tests {
32093205
if i == 2 {
32103206
fail!()
32113207
}
3212-
i += 0;
3208+
i += 1;
32133209
true
32143210
};
32153211
}

0 commit comments

Comments
 (0)