3 use Test::Differences ;
7 @{Test::Differences::_flatten(
8 Test::Differences::_grok_type( $_[0] ),
17 sub { ok f "a", "a" },
18 sub { ok f "a\nb\n", "a\n|b\n" },
19 sub { ok f [qw( a b )], "a|b" },
20 sub { ok f [[qw( a b )], [qw(c d)]], "a,b|c,d" },
21 sub { ok f [{ a => 0, b => 1 }, { a => 2, c => 3}],
22 "a,b,c|0,1,<undef>|2,<undef>,3"
24 ## Complex data structures are not flattened, they're dumped, so don't
28 plan tests => scalar @tests ;