Acme-Pinoko
view release on metacpan or search on metacpan
inc/Module/Install/Can.pm view on Meta::CPAN
# No working C compiler
return 0;
}
# Write a C file representative of what XS becomes
require File::Temp;
my ( $FH, $tmpfile ) = File::Temp::tempfile(
"compilexs-XXXXX",
SUFFIX => '.c',
);
binmode $FH;
print $FH <<'END_C';
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
int main(int argc, char **argv) {
return 0;
}
int boot_sanexs() {
t/03_say_mecab.t view on Meta::CPAN
use strict;
use warnings;
use utf8;
use Test::Requires qw/Text::MeCab/;
use Test::Base;
plan tests => 1 * blocks;
binmode Test::More->builder->$_ => ':utf8'
for qw/output failure_output todo_output/;
use Acme::Pinoko;
my $pinoko = Acme::Pinoko->new(parser => 'Text::MeCab');
run
{
my $block = shift;
is($pinoko->say($block->input), $block->expected);
t/04_say_kytea.t view on Meta::CPAN
use strict;
use warnings;
use utf8;
use Test::Requires qw/Text::KyTea/;
use Test::Base;
plan tests => 1 * blocks;
binmode Test::More->builder->$_ => ':utf8'
for qw/output failure_output todo_output/;
use Acme::Pinoko;
my $pinoko = Acme::Pinoko->new(parser => 'Text::KyTea');
run
{
my $block = shift;
is($pinoko->say($block->input), $block->expected);
( run in 0.750 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )