Permalink
Browse files

t: style fixes

  • Loading branch information...
1 parent d58b1ef commit 68a2f658e50c2b5155af294367d0537b1b5b44c1 @ghedo committed Sep 9, 2012
Showing with 16 additions and 12 deletions.
  1. +9 −7 t/03-simple-returns.t
  2. +7 −5 t/04-pointers.t
View
@@ -2,7 +2,7 @@
use lib 't';
-use Test::More tests => 6;
+use Test::More;
use FFI::Raw;
use CompileTest;
@@ -14,19 +14,21 @@ my $shared = "./t/$test.so";
CompileTest::compile($source, $shared);
my $return_int = FFI::Raw -> new($shared, 'return_int', FFI::Raw::int);
-is($return_int -> call, 101);
+is $return_int -> call, 101;
my $return_short = FFI::Raw -> new($shared, 'return_short', FFI::Raw::short);
-is($return_short -> call, 102);
+is $return_short -> call, 102;
my $return_char = FFI::Raw -> new($shared, 'return_char', FFI::Raw::char);
-is($return_char -> call, -103);
+is $return_char -> call, -103;
my $return_double = FFI::Raw -> new($shared, 'return_double', FFI::Raw::double);
-is($return_double -> call, 99.9e0);
+is $return_double -> call, 99.9e0;
my $return_float = FFI::Raw -> new($shared, 'return_float', FFI::Raw::float);
-is($return_float -> call, -4.5e0);
+is $return_float -> call, -4.5e0;
my $return_string = FFI::Raw -> new($shared, 'return_string', FFI::Raw::str);
-is($return_string -> call, 'epic cuteness');
+is $return_string -> call, 'epic cuteness';
+
+done_testing;
View
@@ -2,7 +2,7 @@
use lib 't';
-use Test::More tests => 4;
+use Test::More;
use FFI::Raw;
use CompileTest;
@@ -42,8 +42,10 @@ my $return_int_from_ptr = FFI::Raw -> new(
my $test_str = 'some string';
my $test_int = 42;
-is($return_str_from_ptr -> call($ptr1), $test_str);
-is($return_int_from_ptr -> call($ptr1), $test_int);
+is $return_str_from_ptr -> call($ptr1), $test_str;
+is $return_int_from_ptr -> call($ptr1), $test_int;
-is($return_str_from_ptr -> call($ptr2), $test_str);
-is($return_int_from_ptr -> call($ptr2), $test_int);
+is $return_str_from_ptr -> call($ptr2), $test_str;
+is $return_int_from_ptr -> call($ptr2), $test_int;
+
+done_testing;

0 comments on commit 68a2f65

Please sign in to comment.