Skip to content

Instantly share code, notes, and snippets.

@trapple
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trapple/e1dd23f88ee0310690c2 to your computer and use it in GitHub Desktop.
Save trapple/e1dd23f88ee0310690c2 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use utf8;
use open ':std', ':encoding(utf8)';
use Test::More;
require 'youbi.pl';
is( translate("mon"), "月曜日", "mon => 月曜日" );
is( translate("tue"), "火曜日", "tue => 火曜日" );
is( translate("wed"), "水曜日", "wed => 水曜日" );
is( translate("thu"), "木曜日", "thu => 木曜日" );
is( translate("fri"), "金曜日", "fri => 金曜日" );
is( translate("sat"), "土曜日", "sat => 土曜日" );
is( translate("sun"), "日曜日", "sun => 日曜日" );
is( translate("hoge"), undef, "hoge => undef" );
done_testing;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment