cookie_cutter::__internal__single_source_single_template_tests!(
    nested_iterate,
    "Peter\nAnna\nJames\nJohn",
    "../testdata/source_files/nested_iterate.cctmpl",
    cookie_cutter::include_templates!("../testdata/source_files/nested_iterate.cctmpl"),
    "nested_iterate",
    value! {people: [{contacts: ["Peter"]}, {contacts: ["Anna", "James"]}, {contacts: ["John"]}]},
    {
        #[allow(dead_code)]
        #[cfg_attr(feature = "serde", derive(Serialize))]
        struct Data {
            people: Vec<Person>,
        }

        #[allow(dead_code)]
        #[cfg_attr(feature = "serde", derive(Serialize))]
        struct Person {
            contacts: Vec<String>,
        }
    },
    Data {
        people: vec![
            Person {
                contacts: vec!["Peter".to_string()],
            },
            Person {
                contacts: vec!["Anna".to_string(), "James".to_string()]
            },
            Person {
                contacts: vec!["John".to_string()]
            }
        ]
    }
);
