X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLaTeX-TikZ.git;a=blobdiff_plain;f=t%2F11-point.t;h=7bd64d6568312043ad9aa15fe5beea22d07a40f0;hp=9e73f15c89b6d47ba2d578eb24525457eff7e721;hb=30f5ed56f488e23570b3ed768de0614c99dcd70e;hpb=080eb1e263eb7c3700a9ebfd96522eaa534a0b6c diff --git a/t/11-point.t b/t/11-point.t index 9e73f15..7bd64d6 100644 --- a/t/11-point.t +++ b/t/11-point.t @@ -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); };