Acme-PriPara
view release on metacpan or search on metacpan
t/01_characters.t view on Meta::CPAN
use strict;
use warnings;
use Acme::PriPara;
use Acme::PriPara::MainMembers::ManakaLaara;
use Acme::PriPara::MainMembers::MinamiMirei;
use Acme::PriPara::MainMembers::HojoSophy;
use Acme::PriPara::MainMembers::TodoSion;
use Acme::PriPara::MainMembers::DorothyWest;
use Acme::PriPara::MainMembers::ReonaWest;
use Test::More;
use utf8;
subtest 'Charactors' => sub {
subtest 'Laara' => sub {
my $laara = Acme::PriPara::MainMembers::ManakaLaara->new;
ok ! $laara->has_pripara_changed, 'initially not pripara-changed';
is $laara->name, 'çä¸ ããã';
is $laara->firstname, 'ããã';
is $laara->lastname, 'çä¸';
is $laara->age, 10;
is $laara->birthday, '11/20';
is $laara->blood_type, 'O';
is $laara->cv, 'è屿¥æµ·å¤';
is $laara->voiced_by, 'è屿¥æµ·å¤';
is $laara->say, 'ãããã¾ï¼';
is $laara->costume_brand, undef; # withiout PriPara Changing, you cannot get costume_brand.
is $laara->color, undef, 'color returns only if pripara-changed';
$laara->pripara_change;
ok $laara->has_pripara_changed;
is $laara->costume_brand, 'Twinkle Ribbon';
is $laara->color, 'ãã³ã¯', 'color returns only if pripara-changed';
};
subtest 'Mirei' => sub {
my $mirei = Acme::PriPara::MainMembers::MinamiMirei->new;
ok ! $mirei->has_pripara_changed, 'initially not pripara-changed';
is $mirei->name, 'å ã¿ãã';
is $mirei->firstname, 'ã¿ãã';
is $mirei->lastname, 'å';
is $mirei->age, 13;
is $mirei->birthday, '10/1';
is $mirei->blood_type, 'A';
is $mirei->cv, 'è¹æ¾¤åª';
is $mirei->voiced_by, 'è¹æ¾¤åª';
is $mirei->costume_brand, undef;
is $mirei->color, undef, 'color returns only if pripara-changed';
$mirei->pripara_change;
ok $mirei->has_pripara_changed;
is $mirei->costume_brand, 'Candy à la Mode';
is $mirei->color, 'ã©ã¤ããã«ã¼', 'color returns only if pripara-changed';
is $mirei->say, 'ã·ã';
};
subtest 'Sophy' => sub {
my $sophy = Acme::PriPara::MainMembers::HojoSophy->new;
ok ! $sophy->has_pripara_changed, 'initially not pripara-changed';
is $sophy->name, 'åæ¡ ããµã';
is $sophy->firstname, 'ããµã';
is $sophy->lastname, 'åæ¡';
is $sophy->age, 14;
is $sophy->birthday, '7/30';
is $sophy->blood_type, 'AB';
is $sophy->cv, 'ä¹
ä¿ç°æªå¤¢';
is $sophy->voiced_by, 'ä¹
ä¿ç°æªå¤¢';
is $sophy->costume_brand, undef;
is $sophy->color, undef, 'color returns only if pripara-changed';
is $sophy->say, 'ã·ãã
ã';
$sophy->pripara_change; # Sophy attempt to enter the PriPara World...
( run in 1.158 second using v1.01-cache-2.11-cpan-5a3173703d6 )