#![cfg(test)]
use common::item_from_str;
use oh_my_toml_macro::OhMyToml;
mod common;
#[test]
fn foo() {
#[derive(OhMyToml, Debug, PartialEq, Eq)]
struct Foo;
assert_eq!(item_from_str::<Foo>("\"Foo\"").unwrap(), Foo);
}
#[test]
fn feature() {
#[derive(OhMyToml, Debug, PartialEq, Eq)]
#[toml(rename = "little_foo")]
struct Foo;
assert_eq!(item_from_str::<Foo>("\"little_foo\"").unwrap(), Foo);
}