Skip to content

Commit 20e00c5

Browse files
committed
Add a visibility test
1 parent d5bd8ac commit 20e00c5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ fn test_meta() {
6868
mod visibility {
6969
lazy_static! {
7070
pub static ref FOO: Box<u32> = Box::new(0);
71+
static ref BAR: Box<u32> = Box::new(98);
72+
}
73+
74+
#[test]
75+
fn sub_test() {
76+
assert_eq!(**FOO, 0);
77+
assert_eq!(**BAR, 98);
7178
}
7279
}
7380

0 commit comments

Comments
 (0)