diff --git a/tests/test_bytearray.py b/tests/test_bytearray.py index 46a7296..56d7f14 100644 --- a/tests/test_bytearray.py +++ b/tests/test_bytearray.py @@ -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'))