add a test with signed char to ensure it still working

This commit is contained in:
Mathieu Virbel 2015-02-06 18:34:50 +01:00
parent 627bdc6d61
commit d9cdbb7288
1 changed files with 4 additions and 0 deletions

View File

@ -7,3 +7,7 @@ class StringArgumentForByteArrayTest(unittest.TestCase):
# 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'))