use strict;
use Error::Pure::Utils qw(clean);
use Test::More 'tests' => 3;
use Unicode::UTF8 qw(decode_utf8);
# Test.
my $obj = Wikibase::Datatype::Value::Monolingual->new(
'value' => 'Example',
);
my $ret = $obj->language;
is($ret, 'en', 'Get default language().');
# Test.
$obj = Wikibase::Datatype::Value::Monolingual->new(
'language' => 'cs',
'value' => decode_utf8('Příklad'),
);
$ret = $obj->language;
is($ret, 'cs', 'Get explicit language().');