From: <bao...@us...> - 2006-04-22 09:24:12
|
Revision: 79 Author: baoilleach Date: 2006-04-22 02:24:03 -0700 (Sat, 22 Apr 2006) ViewCVS: http://svn.sourceforge.net/cclib/?rev=79&view=rev Log Message: ----------- New test for scfvalues to ensure that it has (a) right dimensions compared to geovalues and scftargets and (b) is the correct type: a list of Numeric arrays Modified Paths: -------------- trunk/test/testall.py Modified: trunk/test/testall.py =================================================================== --- trunk/test/testall.py 2006-04-21 07:10:27 UTC (rev 78) +++ trunk/test/testall.py 2006-04-22 09:24:03 UTC (rev 79) @@ -32,6 +32,14 @@ sumwronglabels = sum([x not in ['Ag','Bu','Au','Bg'] for x in self.data.mosyms[0]]) self.assertEquals(sumwronglabels,0) + def testscfvaluetype(self): + """Do the scf values have the right type?""" + self.assert_(type(self.data.scfvalues[0])==type(array([])) and type(self.data.scfvalues)==type([])) + + def testscfvaluedim(self): + """Do the scf values have the right dimensions?""" + self.assert_(len(self.data.scfvalues)==len(self.data.geovalues) and len(self.data.scfvalues[0])==len(self.data.scftargets)) + class GaussianGeoOptTest(GenericGeoOptTest): def setUp(self): self.data = getfile(G03,"basicGaussian03","dvb_gopt.out") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |