diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2016-02-06 20:59:11 -0800 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2016-02-07 20:48:17 -0800 |
commit | b20ac732d096c1140d856d99f4cf64f6c708de50 (patch) | |
tree | b9ffcd72dda0abd1a67d966a3fe9b1dd8e3247ec /tests/scanner/Regress-1.0-Python-expected | |
parent | c2f0c7bce052af6107dfe676b956b60550786c56 (diff) | |
download | gobject-introspection-b20ac732d096c1140d856d99f4cf64f6c708de50.tar.gz |
tests: Add regression test for out array of struct
This is a regression test for returning out arrays of structs, like
gdk_keymap_get_entries_for_keyval() for example.
https://bugzilla.gnome.org/show_bug.cgi?id=761658
Diffstat (limited to 'tests/scanner/Regress-1.0-Python-expected')
-rw-r--r-- | tests/scanner/Regress-1.0-Python-expected/Regress.test_array_struct_out.page | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.test_array_struct_out.page b/tests/scanner/Regress-1.0-Python-expected/Regress.test_array_struct_out.page new file mode 100644 index 00000000..5ca13632 --- /dev/null +++ b/tests/scanner/Regress-1.0-Python-expected/Regress.test_array_struct_out.page @@ -0,0 +1,45 @@ +<?xml version="1.0"?> +<page id="Regress.test_array_struct_out" + type="topic" + style="function" + xmlns="http://projectmallard.org/1.0/" + xmlns:api="http://projectmallard.org/experimental/api/" + xmlns:ui="http://projectmallard.org/1.0/ui/"> + <info> + <link xref="index" group="function" type="guide"/> + <api:function> + <api:returns> + <api:type>none</api:type> + </api:returns> + <api:name>regress_test_array_struct_out</api:name> + <api:arg> + <api:type>[Regress.TestStructA]</api:type> + <api:name>arr</api:name> + </api:arg> + <api:arg> + <api:type>int</api:type> + <api:name>len</api:name> + </api:arg> + </api:function> + </info> + <title>Regress.test_array_struct_out</title> + <synopsis><code mime="text/x-python"> +@accepts([Regress.TestStructA], int) +@returns(none) +def test_array_struct_out(arr, len): + # Python wrapper for regress_test_array_struct_out() + </code></synopsis> +<p>This is similar to gdk_keymap_get_entries_for_keyval().</p> + +<terms> +<item> +<title><code>arr</code></title> + +</item> +<item> +<title><code>len</code></title> + +</item> +</terms> + +</page> |