#![allow(missing_docs)]
use std::collections::HashSet;
use featureflag::{Feature, feature::known_features};
#[allow(dead_code)]
fn func() {
featureflag::feature!("a", false);
featureflag::feature!("b", true);
featureflag::is_enabled!("c", false);
featureflag::is_enabled!("d", true);
Feature::new("dynamic1", false).is_enabled();
}
#[test]
fn test_known_features() {
Feature::new("dynamic2", false).is_enabled();
let expected = [
"a", "b", "c", "d",
]
.into_iter()
.collect::<HashSet<_>>();
assert_eq!(known_features(), &expected);
}