X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F20-mod.t;h=38ab3fe5dcb13b22f1da4ebbe74cafee4c523633;hb=ad9a80bf0294a4f31f7b0ad765f80a81918221d4;hp=a6c44651b6493757a1921df979477eb5d0b9695c;hpb=cb3b916e0590c6a0b70b60f30304921385462faa;p=perl%2Fmodules%2FLaTeX-TikZ.git diff --git a/t/20-mod.t b/t/20-mod.t index a6c4465..38ab3fe 100644 --- a/t/20-mod.t +++ b/t/20-mod.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 13 + 2 * 17; +use Test::More tests => 14 + 2 * 18; use LaTeX::TikZ; use LaTeX::TikZ::Formatter; @@ -85,6 +85,18 @@ check $foo, 'one triple modded sequence of raw sets', <<'RES'; \end{scope} RES +my $nested = eval { + Tikz->seq( + Tikz->seq(Tikz->raw("foo")) + ->mod($red) + )->mod($width) +}; +is $@, '', 'creating nested modded sequences doesn\'t croak'; + +check $nested, 'nested modded sequences', <<'RES'; +\draw [line width=4.0pt,color=red] foo ; +RES + my $baz = eval { Tikz->raw('baz') ->mod($red);