Skip to content

Commit

Permalink
add a test with signed char to ensure it still working
Browse files Browse the repository at this point in the history
  • Loading branch information
tito committed Feb 6, 2015
1 parent 627bdc6 commit d9cdbb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_bytearray.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ def test_string_arg_for_byte_array(self):
# the ByteBuffer.wrap() accept only byte[].
ByteBuffer = autoclass('java.nio.ByteBuffer')
self.assertIsNotNone(ByteBuffer.wrap('hello world'))

def test_string_arg_with_signed_char(self):
ByteBuffer = autoclass('java.nio.ByteBuffer')
self.assertIsNotNone(ByteBuffer.wrap('\x00\xffHello World\x7f'))

0 comments on commit d9cdbb7

Please sign in to comment.