summaryrefslogtreecommitdiff
path: root/t/add_property_array.t
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2015-06-11 22:32:06 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2015-06-11 22:32:06 +0000
commit467298a34215401cdcbb1dded51bc2aba5f1f41c (patch)
tree1923f32fbc9cf8f0b4ab291d1eb9fad5ab872d68 /t/add_property_array.t
downloadModule-Build-tarball-master.tar.gz
Diffstat (limited to 't/add_property_array.t')
-rw-r--r--t/add_property_array.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/add_property_array.t b/t/add_property_array.t
new file mode 100644
index 0000000..3b405cb
--- /dev/null
+++ b/t/add_property_array.t
@@ -0,0 +1,16 @@
+#!/usr/bin/perl -w
+
+use strict;
+use lib 't/lib';
+use MBTest tests => 1;
+
+blib_load 'Module::Build';
+
+ADDPROP: {
+ package My::Build::Prop;
+ use base 'Module::Build';
+ __PACKAGE__->add_property( 'list_property' => []);
+}
+
+ok grep { $_ eq 'bundle_inc' } My::Build::Prop->array_properties, "has bundle_inc even after adding another array property";
+