Skip to content

Commit

Permalink
Use sin because erf not on Win32
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Dec 27, 2014
1 parent 3bf4a9b commit b9ce6d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/28autowrap.t
Expand Up @@ -4,7 +4,7 @@ use TestInlineSetup;
use Inline config => directory => $TestInlineSetup::DIR;
use Test::More;

use Inline C => sub { q{ double erf(double); } } => enable => "autowrap";
like erf(1), qr/^0\.8/, "erf(1) returned 0.8-ish";
use Inline C => sub { q{ double sin(double); } } => enable => "autowrap";
like &sin(1), qr/^0\.8/, "sin(1) returned 0.8-ish";

done_testing;

0 comments on commit b9ce6d7

Please sign in to comment.