diff options
author | Tomeu Vizoso <tomeu@sugarlabs.org> | 2009-11-27 12:06:59 +0000 |
---|---|---|
committer | Tomeu Vizoso <tomeu@sugarlabs.org> | 2009-11-27 12:48:16 +0000 |
commit | ac80e64c9f7d257865aa820753e52d56cf2871c8 (patch) | |
tree | 3edd28b8fd14ff34fb0031f7d5e7b526f7a36639 /tests/test_gi.py | |
parent | 4a373b8ad6ec137e911b92a3e745e0fd76541292 (diff) | |
download | pygi-ac80e64c9f7d257865aa820753e52d56cf2871c8.tar.gz pygi-ac80e64c9f7d257865aa820753e52d56cf2871c8.tar.xz pygi-ac80e64c9f7d257865aa820753e52d56cf2871c8.zip |
Structs in arrays are not marshalled correctly
https://bugzilla.gnome.org/show_bug.cgi?id=602709
Diffstat (limited to 'tests/test_gi.py')
-rw-r--r-- | tests/test_gi.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_gi.py b/tests/test_gi.py index 1b0cadb..e8654b6 100644 --- a/tests/test_gi.py +++ b/tests/test_gi.py @@ -823,6 +823,14 @@ class TestArray(unittest.TestCase): self.assertEquals((-2, -1, 0, 1, 2), TestGI.array_inout(Sequence((-1, 0, 1, 2)))) + def test_array_fixed_out_struct(self): + struct1, struct2 = TestGI.array_fixed_out_struct() + + self.assertEquals(7, struct1.long_) + self.assertEquals(6, struct1.int8) + self.assertEquals(6, struct2.long_) + self.assertEquals(7, struct2.int8) + def test_array_zero_terminated_return(self): self.assertEquals(('0', '1', '2'), TestGI.array_zero_terminated_return()) |