[pygobject/gsoc2009: 23/160] Add test for arrays as input-output argument
- From: Simon van der Linden <svdlinden src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pygobject/gsoc2009: 23/160] Add test for arrays as input-output argument
- Date: Fri, 14 Aug 2009 21:24:01 +0000 (UTC)
commit 03200b4901862bb9445ace5129a66f62325f2032
Author: Simon van der Linden <simon vanderlinden student uclouvain be>
Date: Sun Jul 5 18:21:55 2009 +0200
Add test for arrays as input-output argument
Add testArrayIntInout.
tests/test_girepository.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_girepository.py b/tests/test_girepository.py
index c1279d4..58b867b 100644
--- a/tests/test_girepository.py
+++ b/tests/test_girepository.py
@@ -268,6 +268,9 @@ class TestGIEverything(unittest.TestCase):
self.assertRaises(TypeError, Everything.test_array_int_in, 0)
self.assertRaises(TypeError, Everything.test_array_int_in, (2, 'a'))
+ def testArrayIntInout(self):
+ self.assertEquals((2, 3, 4, 5), Everything.test_array_int_inout((0, 1, 2, 3, 4)))
+
def testArrayIntOut(self):
self.assertEquals((0, 1, 2, 3, 4), Everything.test_array_int_out())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]