The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
# `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');