Skip to content

Commit ca98194

Browse files
committed
Added some old uncommited test case
1 parent ffe65c8 commit ca98194

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/test.rs

+13
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,19 @@ lazy_static! {
3333

3434
}
3535

36+
lazy_static! {
37+
static ref S1: &'static str = "a";
38+
static ref S2: &'static str = "b";
39+
}
40+
lazy_static! {
41+
static ref S3: String = [*S1, *S2].join("");
42+
}
43+
44+
#[test]
45+
fn s3() {
46+
assert_eq!(&*S3, "ab");
47+
}
48+
3649
fn times_two(n: u32) -> u32 {
3750
n * 2
3851
}

0 commit comments

Comments
 (0)