Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Removed Event::Inline's requirement for Inline::C
- Loading branch information
Showing
3 changed files
with
6 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,10 @@ | ||
# watch -*-perl-*- | ||
|
||
use strict; | ||
use Test::More tests => 4; | ||
use Test::More tests => 3; | ||
use Event (); | ||
|
||
require Config; | ||
require Event::MakeMaker; | ||
|
||
my $path = $Event::MakeMaker::installsitearch; | ||
my $so = $Config::Config{so}; | ||
|
||
my $inline = { | ||
INC => "-I $path/Event", | ||
TYPEMAPS => "$path/Event/typemap", | ||
MYEXTLIB => "$path/auto/Event/Event.$so", | ||
AUTO_INCLUDE => '#include "EventAPI.h"', | ||
BOOT => 'I_EVENT_API("Inline");', | ||
}; | ||
|
||
is_deeply $inline, Event->Inline(q{C}); | ||
is_deeply $inline, Event->Inline(q{NotC}); | ||
is_deeply $inline, Event->Inline(q{}); | ||
is_deeply $inline, Event->Inline(undef); | ||
my $expected = Event->Inline(q{C}); | ||
is q{HASH}, ref $expected, q{returns hash reference}; | ||
is_deeply $expected, Event->Inline(q{notC}, q{Non-'C' Inline will return same hasref as 'C'}); | ||
is_deeply $expected, Event->Inline(q{notC}, q{undef will return same hasref as 'C'}); |