Skip to content

Commit 75e817f

Browse files
committed
adjust the test
1 parent 3e9d487 commit 75e817f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/lib.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,17 @@ mod tests {
144144
assert!(works5());
145145
}
146146

147-
extern crate std;
148147
#[test]
148+
#[allow(clippy::assertions_on_constants)]
149149
fn test_usage_within_a_function() {
150150
cfg_if! {if #[cfg(debug_assertions)] {
151-
std::println!("debug");
152-
std::println!("debug2");
151+
// we want to put more than one thing here to make sure that they
152+
// all get configured properly.
153+
assert!(cfg!(debug_assertions));
154+
assert_eq!(4, 2+2);
153155
} else {
154-
std::println!("release");
155-
std::println!("release2");
156+
assert!(works1().is_some());
157+
assert_eq!(10, 5+5);
156158
}}
157159
}
158160
}

0 commit comments

Comments
 (0)