diff options
| author | Steven Fackler <sfackler@gmail.com> | 2015-01-31 15:08:25 -0800 |
|---|---|---|
| committer | Steven Fackler <sfackler@gmail.com> | 2015-03-09 10:14:21 -0700 |
| commit | e2605b42c7ce37717118fe240f7d0e8c4eae3598 (patch) | |
| tree | 29aa2b8718f77fa3e1c04a60e0c8187e021768a7 /src/libstd/sys | |
| parent | 2574009af0ff70dc233beab246db8f2d715be2cb (diff) | |
| download | rust-e2605b42c7ce37717118fe240f7d0e8c4eae3598.tar.gz rust-e2605b42c7ce37717118fe240f7d0e8c4eae3598.zip | |
Rename #[should_fail] to #[should_panic]
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/common/wtf8.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/sys/common/wtf8.rs b/src/libstd/sys/common/wtf8.rs index 719c74179ac..7a02df23b19 100644 --- a/src/libstd/sys/common/wtf8.rs +++ b/src/libstd/sys/common/wtf8.rs @@ -1030,14 +1030,14 @@ mod tests { } #[test] - #[should_fail] + #[should_panic] fn wtf8buf_truncate_fail_code_point_boundary() { let mut string = Wtf8Buf::from_str("aé"); string.truncate(2); } #[test] - #[should_fail] + #[should_panic] fn wtf8buf_truncate_fail_longer() { let mut string = Wtf8Buf::from_str("aé"); string.truncate(4); @@ -1133,7 +1133,7 @@ mod tests { } #[test] - #[should_fail] + #[should_panic] fn wtf8_slice_not_code_point_boundary() { &Wtf8::from_str("aé 💩")[2.. 4]; } @@ -1144,7 +1144,7 @@ mod tests { } #[test] - #[should_fail] + #[should_panic] fn wtf8_slice_from_not_code_point_boundary() { &Wtf8::from_str("aé 💩")[2..]; } @@ -1155,7 +1155,7 @@ mod tests { } #[test] - #[should_fail] + #[should_panic] fn wtf8_slice_to_not_code_point_boundary() { &Wtf8::from_str("aé 💩")[5..]; } |
