Skip to content

Commit 05839bd

Browse files
authored
Merge pull request #3 from plicease/strcmp
use strcmp to do basic test instead of fmax
2 parents c9b6b40 + a7e2b61 commit 05839bd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

t/basic.t

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
use strict;
22
use warnings;
3-
use Test::More tests => 1;
3+
use Test::More tests => 2;
44

55
use parent qw(NativeCall);
66

7-
sub fmax :Args(double, double) :Native :Returns(double) {}
8-
is fmax(2.0, 3.0), 3.0;
7+
sub strcmp :Args(string,string) :Native :Returns(int) {}
8+
is strcmp("abc","abc"), 0;
9+
isnt strcmp("abc","def"), 0;

0 commit comments

Comments
 (0)