def p_unparsed(self, p):
     '''unparsed : UNPARSEDCHUNK'''
     p[0] = Unparsed(p[1])
コード例 #2
0
ファイル: FoamFileGenerator.py プロジェクト: minhbau/PyFoam
 def testUnparsedList(self):
     text="Das ist nicht geparst"
     g=FoamFileGenerator([Unparsed(text),"nix"])
     self.assertEqual(str(g),"(\n  "+text+"\n  nix\n)\n")
コード例 #3
0
ファイル: FoamFileGenerator.py プロジェクト: minhbau/PyFoam
 def testUnparsedDict(self):
     text="Das ist nicht geparst"
     g=FoamFileGenerator({"a":Unparsed(text),"b":"nix"})
     self.assertEqual(str(g),"a "+text+";\nb nix;\n")
コード例 #4
0
ファイル: FoamFileGenerator.py プロジェクト: minhbau/PyFoam
 def testUnparsed(self):
     text="Das ist nicht geparst"
     g=FoamFileGenerator(Unparsed(text))
     self.assertEqual(str(g),text)