Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin865 committed Jun 9, 2023
1 parent f8a8b49 commit c6fb076
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_bladder.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ def test_bladderurethra1(self):
fieldcache = fieldmodule.createFieldcache()
result, surfaceArea = surfaceAreaField.evaluateReal(fieldcache, 1)
self.assertEqual(result, RESULT_OK)
self.assertAlmostEqual(surfaceArea, 4564.8516929316065, delta=1.0E-6)
self.assertAlmostEqual(surfaceArea, 4564.851396969593, delta=1.0E-6)
result, volume = volumeField.evaluateReal(fieldcache, 1)
self.assertEqual(result, RESULT_OK)
self.assertAlmostEqual(volume, 2221.200414557121, delta=1.0E-6)
self.assertAlmostEqual(volume, 2221.1973927759996, delta=1.0E-6)
result, flatSurfaceArea = flatSurfaceAreaField.evaluateReal(fieldcache, 1)
self.assertEqual(result, RESULT_OK)
self.assertAlmostEqual(flatSurfaceArea, 4087.7670057497376, delta=1.0E-3)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def test_deletion(self):

# delete element ranges for body
annotationGroups = scaffoldPackage.getAnnotationGroups()
self.assertEqual(72, len(annotationGroups))
self.assertEqual(73, len(annotationGroups))
scaffoldPackage.deleteElementsInRanges(region, [[313, 496]])
self.assertEqual(600, mesh3d.getSize())
element = mesh3d.findElementByIdentifier(400)
Expand All @@ -457,7 +457,7 @@ def test_deletion(self):

# check that bob is deleted
annotationGroups = scaffoldPackage.getAnnotationGroups()
self.assertEqual(71, len(annotationGroups))
self.assertEqual(72, len(annotationGroups))
bob = scaffoldPackage.findAnnotationGroupByName('bob')
self.assertNotIn(bob, annotationGroups)
node = nodes.findNodeByIdentifier(bobNodeIdentifier)
Expand Down

0 comments on commit c6fb076

Please sign in to comment.