Skip to content

Commit 01f4fff

Browse files
committed
Add more test combinations
1 parent c0eb002 commit 01f4fff

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

unittests/test_smart_pointer.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ def test_smart_pointer(self):
3838
declarations.smart_pointer_traits.is_smart_pointer(
3939
decls[0].decl_type))
4040

41+
criteria = declarations.declaration_matcher(name="no1")
42+
decls = declarations.matcher.find(criteria, self.global_ns)
43+
self.assertFalse(
44+
declarations.smart_pointer_traits.is_smart_pointer(
45+
decls[0].decl_type))
46+
47+
criteria = declarations.declaration_matcher(name="no2")
48+
decls = declarations.matcher.find(criteria, self.global_ns)
49+
self.assertFalse(
50+
declarations.smart_pointer_traits.is_smart_pointer(
51+
decls[0].decl_type))
52+
4153
def test_auto_pointer(self):
4254
"""
4355
Test auto_ptr_traits class.

0 commit comments

Comments
 (0)