Example #1
0
 def testMacroDefinitionDict_03(self):
     self.assertEqual({'FOO(n)' : 'n * BAR\n'}, Cpp.macroDefinitionDict(['FOO(n)=n * BAR']))
Example #2
0
 def testMacroDefinitionDict_01(self):
     self.assertEqual({'FOO' : '\n'}, Cpp.macroDefinitionDict(['FOO']))
Example #3
0
 def testMacroDefinitionDict_02(self):
     self.assertEqual({'FOO' : 'BAR\n'}, Cpp.macroDefinitionDict(['FOO=BAR']))
Example #4
0
 def testMacroDefinitionDict_00(self):
     self.assertEqual({}, Cpp.macroDefinitionDict([]))