From d9cdbb7288372eb58a72b86d901e8965cf0cc952 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Fri, 6 Feb 2015 18:34:50 +0100 Subject: [PATCH] add a test with signed char to ensure it still working --- tests/test_bytearray.py | 4 ++++ 1 file changed, 4 insertions(+) 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'))