use super::*; #[test] fn styles01() -> Result<()> { let expected = "\ \n\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "; let mut formats = Formats::default(); let format = Format::default(); // TODO: do everything that is necessary for the test to succeed. formats.create_or_get_index(Some(&format)); assert_eq!(formats.write_xml_document_to_string()?.as_str(), expected); Ok(()) } #[test] fn styles02() -> Result<()> { let expected = "\ \n \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "; let mut formats = Formats::default(); { let format = Format::default(); // TODO: do everything that is necessary for the test to succeed. formats.create_or_get_index(Some(&format)); } { let format = Format::default(); // TODO: do everything that is necessary for the test to succeed. formats.create_or_get_index(Some(&format)); } { let format = Format::default(); // TODO: do everything that is necessary for the test to succeed. formats.create_or_get_index(Some(&format)); } { let format = Format::default(); // TODO: do everything that is necessary for the test to succeed. formats.create_or_get_index(Some(&format)); } assert_eq!(formats.write_xml_document_to_string()?.as_str(), expected); Ok(()) }