use strict;
use warnings;
-use Test::More tests => 15 + 2 * 18;
+use Test::More tests => 19 + 2 * 21;
use LaTeX::TikZ;
};
is $@, '', 'creating and adding another width mod doesn\'t croak';
-check $seq, 'mod covering 4', <<'RES';
+check $seq, 'mod covering 5', <<'RES';
\begin{scope} [color=red,raw2]
\begin{scope} [line width=4.0pt]
\begin{scope} [raw1]
\draw [raw3] baz ;
\end{scope}
RES
+
+my ($fred, $fblue) = eval {
+ map Tikz->fill($_), qw/red blue/;
+};
+is $@, '', 'creating two fill mods doesn\'t croak';
+
+$seq = eval {
+ Tikz->seq(
+ Tikz->raw("foo")
+ ->mod($fred)
+ )->mod($fred);
+};
+is $@, '', 'creating a structure with two identical fill mods doesn\'t croak';
+
+check $seq, 'mod covering 6', <<'RES';
+\draw [fill=red] foo ;
+RES
+
+$seq = eval {
+ Tikz->seq(
+ Tikz->raw("foo")
+ ->mod($fblue)
+ )->mod($fred);
+};
+is $@, '', 'creating a structure with two different fill mods doesn\'t croak';
+
+check $seq, 'mod covering 7', <<'RES';
+\draw [fill=red,fill=blue] foo ;
+RES
+
+$seq = eval {
+ Tikz->seq(
+ Tikz->raw("foo")
+ ->mod($red)
+ )->mod($fred);
+};
+is $@, '', 'creating a structure with color and fill mods doesn\'t croak';
+
+check $seq, 'mod covering 8', <<'RES';
+\draw [fill=red,color=red] foo ;
+RES