Back to index

python3.2  3.2.2
Public Member Functions
ctypes.test.test_strings.WStringArrayTestCase Class Reference

print BUF.from_param(c_char_p("python")) print BUF.from_param(BUF(*"pyth")) More...

List of all members.

Public Member Functions

def test
def test_nonbmp

Detailed Description

print BUF.from_param(c_char_p("python")) print BUF.from_param(BUF(*"pyth"))

Definition at line 61 of file test_strings.py.


Member Function Documentation

Definition at line 62 of file test_strings.py.

00062 
00063         def test(self):
00064             BUF = c_wchar * 4
00065 
00066             buf = BUF("a", "b", "c")
00067             self.assertEqual(buf.value, "abc")
00068 
00069             buf.value = "ABCD"
00070             self.assertEqual(buf.value, "ABCD")
00071 
00072             buf.value = "x"
00073             self.assertEqual(buf.value, "x")
00074 
00075             buf[1] = "Z"
00076             self.assertEqual(buf.value, "xZCD")

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 79 of file test_strings.py.

00079 
00080         def test_nonbmp(self):
00081             u = chr(0x10ffff)
00082             w = c_wchar(u)
00083             self.assertEqual(w.value, u)

Here is the call graph for this function:


The documentation for this class was generated from the following file: