X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F10-set.t;h=e385932d1a3ba6ae5d273b963bb2b504cec8b64f;hb=0e7c2e9d009574e0d337db855d433a8e07d04512;hp=1476558a54e56789ab3bd960cddcce7ed641376b;hpb=95aada0ec5b3c5a0d78ed0ad53436b0e70860bc7;p=perl%2Fmodules%2FLaTeX-TikZ.git diff --git a/t/10-set.t b/t/10-set.t index 1476558..e385932 100644 --- a/t/10-set.t +++ b/t/10-set.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 28 + 2 * 21; +use Test::More tests => 29 + 2 * 21; use LaTeX::TikZ; @@ -244,6 +244,12 @@ RES eval { $join->add($bar); }; +is $@, '', + 'adding too many sets to a chain set joined with an arrayref doesn\'t croak'; + +eval { + using()->render($join); +}; like $@, qr/^Invalid connector/, 'adding too many sets to a chain set joined with an arrayref croaks';