summaryrefslogtreecommitdiffstats
path: root/third_party/rust/ron/tests/240_array_pretty.rs
blob: 957be1572c7975da5ed91ef765af5480bd0eb4af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use ron::ser::{to_string_pretty, PrettyConfig};

#[test]
fn small_array() {
    let arr = &[(), (), ()][..];
    assert_eq!(
        to_string_pretty(&arr, PrettyConfig::new().with_new_line("\n".to_string())).unwrap(),
        "[
    (),
    (),
    (),
]"
    );
}