Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Enable now-passing struct tests.

  • Loading branch information...
commit 3c2dbdff8cb813bdb9e9dc528b3803d91ce9ce4d 1 parent 8490818
@arnsholt arnsholt authored
Showing with 7 additions and 9 deletions.
  1. +7 −9 t/06-struct.t
View
16 t/06-struct.t
@@ -42,15 +42,13 @@ is $obj.arr[1], 2, 'getting CArray and element';
# C-side tests:
-# NYI:
-skip('NYI: Getting struct from C-land', 5);
-#my $cobj = ReturnAStruct;
-#
-#is $cobj.int, 17, 'getting int from C-created struct';
-#is $cobj.num, 4.2e0, 'getting num from C-created struct';
-#is $cobj.arr[0], 2, 'C-created array member, elem 1';
-#is $cobj.arr[1], 3, 'C-created array member, elem 2';
-#is $cobj.arr[2], 5, 'C-created array member, elem 3';
+my $cobj = ReturnAStruct;
+
+is $cobj.int, 17, 'getting int from C-created struct';
+is $cobj.num, 4.2e0, 'getting num from C-created struct';
+is $cobj.arr[0], 2, 'C-created array member, elem 1';
+is $cobj.arr[1], 3, 'C-created array member, elem 2';
+is $cobj.arr[2], 5, 'C-created array member, elem 3';
TakeAStruct($obj);
Please sign in to comment.
Something went wrong with that request. Please try again.