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