Perl x Open Food Facts Hackathon: Paris, France - May 24-25 Learn more
1234567891011121314 use strict;use warnings;use Test::More 'tests' => 2;use Test::NoWarnings;use Wikibase::Datatype::Value;# Test.my $obj = Wikibase::Datatype::Value->new( 'value' => 'foo', 'type' => 'string',);my $ret = $obj->value;is($ret, 'foo', 'Get value().');
use
strict;
warnings;
Test::More
'tests'
=> 2;
Test::NoWarnings;
Wikibase::Datatype::Value;
# Test.
my
$obj
= Wikibase::Datatype::Value->new(
'value'
=>
'foo'
,
'type'
'string'
);
$ret
=
->value;
is(
'Get value().'