We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
slice_shift_char
1 parent 0349f2a commit 262d154Copy full SHA for 262d154
src/libstd/str.rs
@@ -3618,6 +3618,18 @@ mod tests {
3618
assert!(!" _ ".is_whitespace());
3619
}
3620
3621
+ #[test]
3622
+ fn test_slice_shift_char() {
3623
+ let data = "ประเทศไทย中";
3624
+ assert_eq!(data.slice_shift_char(), (Some('ป'), "ระเทศไทย中"));
3625
+ }
3626
+
3627
3628
+ fn test_slice_shift_char_2() {
3629
+ let empty = "";
3630
+ assert_eq!(empty.slice_shift_char(), (None, ""));
3631
3632
3633
#[test]
3634
fn test_push_byte() {
3635
let mut s = ~"ABC";
0 commit comments