use use_data as facade;
#[test]
fn facade_builds_without_features() {
assert_eq!(2 + 2, 4);
}
#[cfg(feature = "json")]
#[test]
fn json_feature_reexports_child_crate() {
assert_eq!(
facade::json::detect_json_kind("{}"),
facade::json::JsonKind::Object
);
}
#[cfg(feature = "toml")]
#[test]
fn toml_feature_reexports_child_crate() {
assert!(facade::toml::looks_like_toml("key = \"value\""));
}
#[cfg(feature = "yaml")]
#[test]
fn yaml_feature_reexports_child_crate() {
assert!(facade::yaml::looks_like_yaml("name: value"));
}
#[cfg(feature = "csv")]
#[test]
fn csv_feature_reexports_child_crate() {
assert_eq!(facade::csv::count_csv_columns("a,b"), 2);
}
#[cfg(feature = "xml")]
#[test]
fn xml_feature_reexports_child_crate() {
assert!(facade::xml::looks_like_xml("<root />"));
}