summaryrefslogtreecommitdiffstats
path: root/bindings/python/tests
diff options
context:
space:
mode:
authorGregory Szorc <gregory.szorc@gmail.com>2012-02-20 17:58:40 +0000
committerGregory Szorc <gregory.szorc@gmail.com>2012-02-20 17:58:40 +0000
commit8261345a32e58dfb5f4269ed92e1608a4ec3379a (patch)
treeb69354fd8db0e8e3a807c62f80d5891bd0db644f /bindings/python/tests
parent0e1f4f8de57b4462f8d41c64de1427c5c1cf7e8f (diff)
[clang.py] Format and add documention for Type
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150972 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/python/tests')
-rw-r--r--bindings/python/tests/cindex/test_type.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bindings/python/tests/cindex/test_type.py b/bindings/python/tests/cindex/test_type.py
index 0ddfe4fb0a..e4cd245c9c 100644
--- a/bindings/python/tests/cindex/test_type.py
+++ b/bindings/python/tests/cindex/test_type.py
@@ -200,6 +200,7 @@ def test_argument_types_invalid_type():
i.type.argument_types()
def test_is_pod():
+ """Ensure Type.is_pod() works."""
tu = get_tu('int i; void f();')
i = get_cursor(tu, 'i')
f = get_cursor(tu, 'f')
@@ -232,6 +233,7 @@ void bar(int a, int b);
assert not bar.type.is_function_variadic()
def test_element_type():
+ """Ensure Type.element_type works."""
tu = get_tu('int i[5];')
i = get_cursor(tu, 'i')
assert i is not None
@@ -248,6 +250,7 @@ def test_invalid_element_type():
i.element_type
def test_element_count():
+ """Ensure Type.element_count works."""
tu = get_tu('int i[5]; int j;')
i = get_cursor(tu, 'i')
j = get_cursor(tu, 'j')