From ecb7e5c8afe929ee38155db94de6b084ec32a645 Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Tue, 16 Feb 2010 09:31:36 +0000 Subject: Update clang to r96341. --- bindings/python/tests/cindex/test_index.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 bindings/python/tests/cindex/test_index.py (limited to 'bindings/python/tests/cindex/test_index.py') diff --git a/bindings/python/tests/cindex/test_index.py b/bindings/python/tests/cindex/test_index.py new file mode 100644 index 000000000000..dc173f04d218 --- /dev/null +++ b/bindings/python/tests/cindex/test_index.py @@ -0,0 +1,15 @@ +from clang.cindex import * +import os + +kInputsDir = os.path.join(os.path.dirname(__file__), 'INPUTS') + +def test_create(): + index = Index.create() + +# FIXME: test Index.read + +def test_parse(): + index = Index.create() + assert isinstance(index, Index) + tu = index.parse(os.path.join(kInputsDir, 'hello.cpp')) + assert isinstance(tu, TranslationUnit) -- cgit v1.3