Use translated variable for test string

Test should be educative, added english translation and pronounciation.
This commit is contained in:
Ivan Tham 2020-08-24 22:47:15 +08:00 committed by GitHub
parent aa7010df90
commit a7468705cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -271,8 +271,8 @@ fn test_split_off_past_end() {
#[test]
#[should_panic]
fn test_split_off_mid_char() {
let mut orig = String::from("");
let _ = orig.split_off(1);
let mut shan = String::from("");
let _broken_mountain = shan.split_off(1);
}
#[test]