use strict;
use warnings;
-use Test::More tests => 4 + 2 * 4;
+use Test::More tests => 5 + 2 * 5;
use LaTeX::TikZ;
\draw (1cm,1cm) ;
\draw (-2cm,1cm) -- (2cm,1cm) ;
RES
+
+$tikz = eval {
+ Tikz->formatter(
+ origin => [ -1, 1 ],
+ );
+};
+is $@, '', 'creating a formatter object with an origin doesn\'t croak';
+
+check $seq, 'a sequence translated by an origin', <<'RES';
+\begin{scope}
+\clip (-1cm,0cm) rectangle (1cm,4cm) ;
+\draw (-1cm,1cm) ;
+\draw foo ;
+\draw (1cm,1cm) ;
+\begin{scope}
+\clip (0cm,1cm) circle (1cm) ;
+\draw (-2cm,1cm) -- (2cm,1cm) ;
+\end{scope}
+\end{scope}
+RES
+