From ae6096ab2611750fe44d3092b407d496ab94b0b9 Mon Sep 17 00:00:00 2001 From: Garrett Berg Date: Sun, 9 Jul 2017 15:20:29 -0600 Subject: pretty arrays --- tests/pretty.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/pretty.rs b/tests/pretty.rs index 6758cfb..718ef07 100644 --- a/tests/pretty.rs +++ b/tests/pretty.rs @@ -5,6 +5,10 @@ use serde::ser::Serialize; const EXAMPLE: &str = "\ [example] +array = [ + \"item 1\", + \"item 2\", +] text = ''' this is the first line this is the second line @@ -16,5 +20,7 @@ fn test_pretty() { let value: toml::Value = toml::from_str(EXAMPLE).unwrap(); let mut result = String::with_capacity(128); value.serialize(&mut toml::Serializer::pretty(&mut result)).unwrap(); + println!("example:\n{}", EXAMPLE); + println!("result:\n{}", result); assert_eq!(EXAMPLE, &result); } -- cgit v1.2.3