]> Dogcows Code - chaz/p5-Alien-ZMQ/blobdiff - t/00-basic.t
cflags and libs can now return a list of flags
[chaz/p5-Alien-ZMQ] / t / 00-basic.t
index f819d60a2c2862151927bcc76a5e62688773da73..bb257eae65a6addbd32a3d601cd866e6dbe0f202 100644 (file)
@@ -1,9 +1,9 @@
 #!perl
 
-use warnings;
+use warnings FATAL => 'all';
 use strict;
 
-use Test::More tests => 8;
+use Test::More tests => 11;
 
 BEGIN {
     use_ok 'Alien::ZMQ';
@@ -14,7 +14,10 @@ ok Alien::ZMQ::lib_version, "library version number";
 ok Alien::ZMQ::inc_dir,     "include directory path";
 ok Alien::ZMQ::inc_dir,     "library directory path";
 
-like Alien::ZMQ::cflags, qr/-I\S+/, "cflags has -I";
-like Alien::ZMQ::libs,   qr/-L\S+/, "libs has -L";
-like Alien::ZMQ::libs,   qr/-lzmq/, "libs has -lzmq";
+ok grep(/-I\S+/, Alien::ZMQ::cflags), "cflags array has -I";
+ok grep(/-L\S+/, Alien::ZMQ::libs),   "libs array has -L";
+ok grep(/-lzmq/, Alien::ZMQ::libs),   "libs array has -lzmq";
 
+like Alien::ZMQ::cflags, qr/-I\S+/, "cflags string has -I";
+like Alien::ZMQ::libs,   qr/-L\S+/, "libs string has -L";
+like Alien::ZMQ::libs,   qr/-lzmq/, "libs string has -lzmq";
This page took 0.01953 seconds and 4 git commands to generate.