Пример #1
0
 def testJouleValue1_0(self):
     """Physical quantities with unit Joule are indicated by 'J'."""
     result = LoadFMF.item2value(self.inputDict["Joule"], FMFversion="1.0")
     self.assertEqual(result, (Quantity(self.inputDict["Joule"]), None))
Пример #2
0
 def testComplexValue(self):
     """Imaginary numbers are indicated by 'j'."""
     result = LoadFMF.item2value(self.inputDict["complexJ"])
     self.assertEqual(result, (complex(self.inputDict["complexJ"]), None))
Пример #3
0
 def testJouleValue1_0(self):
     """Physical quantities with unit Joule are indicated by 'J'."""
     result = LoadFMF.item2value(self.inputDict['Joule'], FMFversion='1.0')
     self.assertEqual(result, (Quantity(self.inputDict['Joule']), None))
Пример #4
0
 def testJouleValue1_1(self):
     """Physical quantities with unit Joule are indicated by 'J'."""
     result = LoadFMF.item2value(self.inputDict['Joule'])
     self.assertEqual(result, (Quantity(self.inputDict['Joule']), None))
Пример #5
0
 def testComplexValue(self):
     """Imaginary numbers are indicated by 'j'."""
     result = LoadFMF.item2value(self.inputDict['complexJ'])
     self.assertEqual(result, (complex(self.inputDict['complexJ']), None))