Initial vendor packages
Signed-off-by: Valentin Popov <valentin@popov.link>
This commit is contained in:
14
vendor/cfg-if/tests/xcrate.rs
vendored
Normal file
14
vendor/cfg-if/tests/xcrate.rs
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(foo)] {
|
||||
fn works() -> bool { false }
|
||||
} else if #[cfg(test)] {
|
||||
fn works() -> bool { true }
|
||||
} else {
|
||||
fn works() -> bool { false }
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn smoke() {
|
||||
assert!(works());
|
||||
}
|
Reference in New Issue
Block a user