BEGIN { $| = 1;
print
"1..12\n"
; }
END {
print
"not ok 1\n"
unless
$loaded
;}
$loaded
= 1;
$i
= 1;
result(
$i
);
my
$biodatavalues
;
{
local
$SIG
{__WARN__} =
sub
{
'IGNORE'
};
$biodatavalues
= Bio::MAGE::BioAssayData::BioDataValues->new();
}
result(
$biodatavalues
->isa(
'Bio::MAGE::BioAssayData::BioDataValues'
));
result(
$biodatavalues
->
package
() eq
q[BioAssayData]
);
result(
$biodatavalues
->class_name() eq
q[Bio::MAGE::BioAssayData::BioDataValues]
);
my
%assns
= Bio::MAGE::BioAssayData::BioDataValues->associations();
my
$assn
;
{
local
$SIG
{__WARN__} =
sub
{
'IGNORE'
};
$biodatavalues
= Bio::MAGE::BioAssayData::BioDataValues->new(
propertySets
=> [Bio::MAGE::NameValueType->new()]);
}
my
$propertysets_assn
;
{
local
$SIG
{__WARN__} =
sub
{
'IGNORE'
};
$propertysets_assn
= Bio::MAGE::NameValueType->new();
}
result (UNIVERSAL::isa(
$biodatavalues
->getPropertySets->[0],
q[Bio::MAGE::NameValueType]
));
result (
$biodatavalues
->setPropertySets([
$propertysets_assn
]));
result (UNIVERSAL::isa(
$biodatavalues
->getPropertySets,
'ARRAY'
)
and
scalar
@{
$biodatavalues
->getPropertySets()} == 1
and
$biodatavalues
->getPropertySets->[0] ==
$propertysets_assn
);
$biodatavalues
->addPropertySets(
$propertysets_assn
);
result (UNIVERSAL::isa(
$biodatavalues
->getPropertySets,
'ARRAY'
)
and
scalar
@{
$biodatavalues
->getPropertySets()} == 2
and
$biodatavalues
->getPropertySets->[0] ==
$propertysets_assn
and
$biodatavalues
->getPropertySets->[1] ==
$propertysets_assn
);
(
$assn
) =
$assns
{propertySets};
result(is_object(
$assn
)
and
$assn
->isa(
'Bio::MAGE::Association'
)
and
defined
$assn
->description(),
and
defined
$assn
->cardinality(),
and
grep
{
$_
eq
$assn
->cardinality} (
'0..1'
,
'1'
,
'1..N'
,
'0..N'
),
and
defined
$assn
->is_ref(),
and (
$assn
->is_ref() == 0 or
$assn
->is_ref() == 1),
and
defined
$assn
->rank(),
and
$assn
->rank(),
and
defined
$assn
->ordered(),
and (
$assn
->ordered() == 0 or
$assn
->ordered() == 1),
and
defined
$assn
->class_name(),
and
$assn
->class_name(),
and
defined
$assn
->name(),
and
$assn
->name(),
);
{
local
$SIG
{__WARN__} =
sub
{
'IGNORE'
};
my
$biodatatuples
= Bio::MAGE::BioAssayData::BioDataTuples->new();
result (
$biodatatuples
->isa(
q[Bio::MAGE::BioAssayData::BioDataTuples]
));
my
$biodatacube
= Bio::MAGE::BioAssayData::BioDataCube->new();
result (
$biodatacube
->isa(
q[Bio::MAGE::BioAssayData::BioDataCube]
));
}
result (
$biodatavalues
->isa(
q[Bio::MAGE::Extendable]
));