mirror of https://github.com/kivy/pyjnius.git
add a test with signed char to ensure it still working
This commit is contained in:
parent
627bdc6d61
commit
d9cdbb7288
|
@ -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'))
|
||||
|
|
Loading…
Reference in New Issue