]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/blobdiff - t/11-point.t
Allow a bare Tikz->point for 0
[perl/modules/LaTeX-TikZ.git] / t / 11-point.t
index 9e73f15c89b6d47ba2d578eb24525457eff7e721..7bd64d6568312043ad9aa15fe5beea22d07a40f0 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 5 + 2 * 5;
+use Test::More tests => 6 + 2 * 6;
 
 use Math::Complex;
 
@@ -52,6 +52,15 @@ check $p, 'a point from a constant Math::Complex object', <<'RES';
 \draw (1cm,-2cm) ;
 RES
 
+$p = eval {
+ Tikz->point;
+};
+is $@, '', 'creating a point from nothing doesn\'t croak';
+
+check $p, 'a point from nothing', <<'RES';
+\draw (0cm,0cm) ;
+RES
+
 $p = eval {
  Tikz->point(-7);
 };