diff options
Diffstat (limited to 'vendor/curl/tests/protocols.rs')
-rw-r--r-- | vendor/curl/tests/protocols.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/curl/tests/protocols.rs b/vendor/curl/tests/protocols.rs new file mode 100644 index 000000000..7215fe972 --- /dev/null +++ b/vendor/curl/tests/protocols.rs @@ -0,0 +1,19 @@ +#[cfg(all(feature = "static-curl", not(feature = "protocol-ftp")))] +#[test] +fn static_with_ftp_disabled() { + assert!(curl::Version::get() + .protocols() + .filter(|&p| p == "ftp") + .next() + .is_none()); +} + +#[cfg(all(feature = "static-curl", feature = "protocol-ftp"))] +#[test] +fn static_with_ftp_enabled() { + assert!(curl::Version::get() + .protocols() + .filter(|&p| p == "ftp") + .next() + .is_some()); +} |