t/scan/method.t
raw| 1 | use strict; |
| 2 | use warnings; |
| 3 | use FindBin; |
| 4 | use lib "$FindBin::Bin/../../"; |
| 5 | use t::scan::Util; |
| 6 | |
| 7 | test(<<'TEST'); # SATOH/Text-Xatena-0.18/t/lib/Text/Xatena/Test.pm |
| 8 | sub thx ($) { |
| 9 | my ($str) = @_; |
| 10 | $INLINE->use if $INLINE; |
| 11 | my $thx = Text::Xatena->new( |
| 12 | %{ $options }, |
| 13 | inline => $INLINE ? $INLINE->new(@{ $INLINE_ARGS }) : undef |
| 14 | ); |
| 15 | my $ret = $thx->format($str, ); |
| 16 | $ret; |
| 17 | } |
| 18 | TEST |
| 19 | |
| 20 | done_testing; |