diff --git a/src/glyph/tests.rs b/src/glyph/tests.rs index d41cd0bb..cc35392b 100644 --- a/src/glyph/tests.rs +++ b/src/glyph/tests.rs @@ -95,6 +95,36 @@ fn serialize_with_custom_whitespace() { ); } +#[test] +fn serialize_with_single_quote_style() { + let data = include_str!("../../testdata/small_lib.glif"); + let glyph = parse_glyph(data.as_bytes()).unwrap(); + let options = WriteOptions::default().quote_char(QuoteChar::Single); + let one_tab = glyph.encode_xml_with_options(&options).unwrap(); + let one_tab = std::str::from_utf8(&one_tab).unwrap(); + pretty_assertions::assert_eq!( + one_tab, + r#" + + + + + + + + + + + test.key + I am a creative professional :) + + + durp + +"# + ); +} + #[test] fn serialize_with_custom_whitespace_and_single_quote_style() { let data = include_str!("../../testdata/small_lib.glif");