diff options
| author | Luca Barbato <lu_zero@gentoo.org> | 2019-09-17 17:55:45 +0200 |
|---|---|---|
| committer | Luca Barbato <lu_zero@gentoo.org> | 2019-09-17 19:22:18 +0200 |
| commit | efd19f4a133528d902fe7b565e2fa421f77973ec (patch) | |
| tree | 640bd0ce7989b405904f92e9e194e333ab24ef7c /library/stdarch/crates/std_detect/src/detect/mod.rs | |
| parent | b70d574394e360c87528fc65a44bd31082801cd3 (diff) | |
| download | rust-efd19f4a133528d902fe7b565e2fa421f77973ec.tar.gz rust-efd19f4a133528d902fe7b565e2fa421f77973ec.zip | |
Add a test for the env_override
Diffstat (limited to 'library/stdarch/crates/std_detect/src/detect/mod.rs')
| -rw-r--r-- | library/stdarch/crates/std_detect/src/detect/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/library/stdarch/crates/std_detect/src/detect/mod.rs b/library/stdarch/crates/std_detect/src/detect/mod.rs index 6389a3fd75b..748299f7f84 100644 --- a/library/stdarch/crates/std_detect/src/detect/mod.rs +++ b/library/stdarch/crates/std_detect/src/detect/mod.rs @@ -135,3 +135,10 @@ pub fn features() -> impl Iterator<Item = (&'static str, bool)> { } impl_() } + +#[test] +fn features_roundtrip() { + for (f, _) in features() { + let _ = Feature::from_str(f).unwrap(); + } +} |
