# `make test'. After `make install' it should work as `perl Text-ViewWidth-EUC_JP.t'
#########################
# change 'tests => 1' to 'tests => last_test_to_print';
use Test::More tests => 7;
BEGIN { use_ok('Text::VisualWidth::EUC_JP') };
#########################
# Insert your test code below, the Test::More module is use()ed here so read
# its man page ( perldoc Test::More ) for help writing this test script.
# ʸ»ú¥³¡¼¥É¤ÏEUC-JP
ok( Text::VisualWidth::EUC_JP::width("123abc¤¢¤¤¤¦±²³") == 15, 'EUC_JP width');
ok( Text::VisualWidth::EUC_JP::width("0") == 1, 'EUC_JP width string zero');
ok( Text::VisualWidth::EUC_JP::width("") == 0, 'EUC_JP width empty string');
ok( Text::VisualWidth::EUC_JP::trim("123±²³¤¢¤¤¤¦",8) eq '123±²³¤¢', 'EUC_JP trim');
ok( Text::VisualWidth::EUC_JP::trim("0",8) eq '0', 'EUC_JP trim string zero');
ok( Text::VisualWidth::EUC_JP::trim("",8) eq '', 'EUC_JP trim empty string');