use crate::prelude::*;
#[derive(Document)]
enum Ty {
Foo {
a: String,
},
Bar { a: String, b: usize },
}
printer_test! {
"output.json" => to_json_fmt(Ty, {
"enums_style": "Commented",
}),
"output.without-comma.json" => to_json_without_comma(Ty, {
"enums_style": "Commented",
}),
"output.without-key-quotes.json" => to_json_without_key_quotes(Ty, {
"enums_style": "Commented",
}),
"output.toml" => to_toml_fmt(Ty, {
"enums_style": "Commented",
}),
}