]> granicus.if.org Git - clang/commitdiff
[clang.py] Test Cursor.__ne__
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 26 Feb 2012 21:56:32 +0000 (21:56 +0000)
committerGregory Szorc <gregory.szorc@gmail.com>
Sun, 26 Feb 2012 21:56:32 +0000 (21:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151504 91177308-0d34-0410-b5e6-96231b3b80d8

bindings/python/tests/cindex/test_cursor.py

index 71ee0c5763eaff05f47fadd86d471f154213eb0d..d58ca95b7e1cd23a3f7cb6fc69362ec0f6925ac8 100644 (file)
@@ -36,6 +36,7 @@ def test_get_children():
 
     assert len(tu_nodes) == 3
 
+    assert tu_nodes[0] != tu_nodes[1]
     assert tu_nodes[0].kind == CursorKind.STRUCT_DECL
     assert tu_nodes[0].spelling == 's0'
     assert tu_nodes[0].is_definition() == True