X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fsugar.t;h=2ccc009038df9cd87306cedb3fc5028b5ec09ca7;hb=91bfd1610444d4abd552caf3e2f89d7ce7bd8ce3;hp=817f4addb131a78431dfc98041b93dc0742bd90d;hpb=92264889a0f278aa61cdee48aef484496fb6e5ce;p=p5sagit%2FData-Dumper-Concise.git diff --git a/t/sugar.t b/t/sugar.t index 817f4ad..2ccc009 100644 --- a/t/sugar.t +++ b/t/sugar.t @@ -34,7 +34,7 @@ DWARN: { ok eq_array(\@foo, ['warn','friend']), 'Dwarn passes lists through correctly'; my $bar = Dwarn 'robot',2,3; - is $warned_string,qq{"robot"\n}, 'Dwarn warns scalars correctly'; + is $warned_string,qq{"robot"\n2\n3\n}, 'Dwarn warns scalars correctly'; is $bar, 'robot', 'Dwarn passes scalars through correctly'; } @@ -66,3 +66,10 @@ DWARNN: { } } +DDIE: { + eval { + DdieS [ 'k', 'bar' ]; + }; + is $@, qq{[\n "k",\n "bar"\n]\n}, 'DwarnD dies output correctly'; +} +