Skip to content

Commit fe86f4b

Browse files
committed
add minimal test
1 parent a5ca6ef commit fe86f4b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

MANIFEST

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ MANIFEST
33
Makefile.PL
44
examples/troll.pl
55
lib/NativeCall.pm
6+
t/basic.t

t/basic.t

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
use strict;
2+
use warnings;
3+
use Test::More tests => 1;
4+
5+
use parent qw(NativeCall);
6+
7+
sub fmax :Args(double, double) :Native :Returns(double) {}
8+
is fmax(2.0, 3.0), 3.0;

0 commit comments

Comments
 (0)