GNOME Bugzilla – Bug 585427
A few more tests regarding arrays
Last modified: 2015-02-07 16:53:47 UTC
In Everything, there are no tests neither for arrays as output argument, nor for fixed-size arrays.
Created attachment 136331 [details] [review] Tests for array as output argument, and fixed-size arrays
+ * @ints: (out) (array length=n_ints) (transfer full): a list of 5 integers, from 0 to 4 in consecutive order + * @n_ints: (out): the length of @ints + */ +void +test_array_int_out (int *n_ints, int **ints) Either the parameter order or the doc order is backwards (I'd suggest switching the parameters since it seems to be more common for the count to come after the array). I'm not sure about the fixed-size arrays as parameters/returns. Do people do that?
Created attachment 136360 [details] [review] Tests for array as output argument (with argument documentation in the right order), and fixed-size arrays Since in all the other array tests, the count precedes the array, I inverted the arguments in the documentation.
(In reply to comment #2) > I'm not sure about the fixed-size arrays as parameters/returns. Do people do > that? Since it is implemented in GObject-Introspection, I implemented it in PyBank too.
The motivation for the fixed-size arrays was inside C structures I believe. Anyways looks fine. Do you have a GNOME account?
(In reply to comment #5) > Do you have a GNOME account? No, I don't. Please commit for me. Thanks.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]