X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=t%2FPOE-Component-IRC-Plugin-Hello.t;h=edd071ead136c44b39ff8708cb4f690fb9b69b94;hb=828747ebb9f361b5a6c735e994a6a15ea539efbf;hp=7eae8c836340f10db51c75184d4581d9a1134ff2;hpb=b2f492fe6ba48ce594f8df81d857b9d213258115;p=poe-component-irc-plugin-hello.git diff --git a/t/POE-Component-IRC-Plugin-Hello.t b/t/POE-Component-IRC-Plugin-Hello.t index 7eae8c8..edd071e 100644 --- a/t/POE-Component-IRC-Plugin-Hello.t +++ b/t/POE-Component-IRC-Plugin-Hello.t @@ -3,7 +3,7 @@ use v5.14; use strict; use warnings; -use Test::More tests => 15; +use Test::More tests => 19; use Test::MockObject; BEGIN { use_ok('POE::Component::IRC::Plugin::Hello') }; @@ -28,16 +28,19 @@ runtest 'PrIvEt', 1, 'privet in mixed case'; runtest ' privet ', 1, 'privet with spaces'; runtest 'hellobot: privet', 1, 'addressed privet'; runtest 'hellobot: privet ', 1, 'addressed privet with spaces'; +runtest 'privet!', 1, 'privet with exclamation mark'; +runtest 'privet.', 1, 'privet with full stop'; runtest 'ahoy', 1, 'ahoy'; runtest 'namaste', 1, 'namaste'; runtest 'neaţa', 1, 'neaţa (UTF-8 test)'; runtest 'こんにちは', 1, 'こんにちは (another UTF-8 test)'; +runtest 'neața', 1, 'neața (UTF-8 with combining comma below)'; runtest 'salu', 0, 'salu (misspelling)'; runtest 'hii', 0, 'hii (misspelling)'; runtest 'neaţa mgv', 0, 'neaţa mgv (valid greeting with garbage after it)'; +runtest 'hi,', 0, 'hi, (bad punctuation)'; $self = POE::Component::IRC::Plugin::Hello->new(greetings => ['sayonara']); - runtest 'privet', 0, 'custom greetings - privet'; runtest ' sayonara ', 1, 'custom greetings - sayonara';