Beispiel #1
0
 def test_a_dot_cpp_file_is_not_an_include_file(self):
     project = ProjectLayout()
     self.assertFalse(project.isIncludeFile('Source/Module1/File.cpp'))
Beispiel #2
0
 def test_another_extension_can_be_added_to_includes(self):
     project = ProjectLayout()
     project.addHeaderPattern('*.i')
     self.assertTrue(project.isIncludeFile('Source/Module1/File.i'))
Beispiel #3
0
 def test_dots_in_extensions_are_escaped(self):
     project = ProjectLayout()
     project.addHeaderPattern('*.i')
     self.assertFalse(project.isIncludeFile('Source/Module1/Fileai'))
Beispiel #4
0
 def test_a_dot_h_file_is_an_include_file(self):
     project = ProjectLayout()
     self.assertTrue(project.isIncludeFile('Source/Module1/File.h'))