Skip to content

Commit 05d22c8

Browse files
author
Ayush Kumar Mishra
committed
Move test-cases in string.rs
1 parent 5a0a58b commit 05d22c8

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

library/alloc/tests/str.rs

-8
Original file line numberDiff line numberDiff line change
@@ -1921,11 +1921,3 @@ fn different_str_pattern_forwarding_lifetimes() {
19211921

19221922
foo::<&str>("x");
19231923
}
1924-
1925-
#[test]
1926-
fn test_str_concat() {
1927-
let a: String = "hello".to_string();
1928-
let b: String = "world".to_string();
1929-
let s: String = format!("{}{}", a, b);
1930-
assert_eq!(s.as_bytes()[9], 'd' as u8);
1931-
}

library/alloc/tests/string.rs

+8
Original file line numberDiff line numberDiff line change
@@ -721,3 +721,11 @@ fn test_from_char() {
721721
let s: String = 'x'.into();
722722
assert_eq!(s, 'x'.to_string());
723723
}
724+
725+
#[test]
726+
fn test_str_concat() {
727+
let a: String = "hello".to_string();
728+
let b: String = "world".to_string();
729+
let s: String = format!("{}{}", a, b);
730+
assert_eq!(s.as_bytes()[9], 'd' as u8);
731+
}

0 commit comments

Comments
 (0)