Commits

Armin Rigo committed fc21aeb

Extra tests

  • Participants
  • Parent commits 382e361

Comments (0)

Files changed (1)

File testing/test_verify.py

         }
     """)
     assert lib.sum3floats((1.5, 2.5, 3.5)) == 7.5
+    p = ffi.new("float[]", (1.5, 2.5, 3.5))
+    assert lib.sum3floats(p) == 7.5
 
 def test_charstar_argument():
     ffi = FFI()
         }
     """)
     assert lib.sum3chars(('\x10', '\x20', '\x30')) == '\x60'
+    p = ffi.new("char[]", '\x10\x20\x30')
+    assert lib.sum3chars(p) == '\x60'