Skip to content

Commit

Permalink
Updated test to have an assert to assure list is of length 3 (thus im…
Browse files Browse the repository at this point in the history
…prove reliability) (#12982)
  • Loading branch information
mcgicjn2 authored Jan 9, 2025
1 parent bb4dff2 commit a7d8c7d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ def test_SetMultipleMovingLoadsConfigurationCombined(self):
cond.CalculateLocalSystem(lhs, rhs, self.model_part.ProcessInfo)
all_rhs.append(list(rhs))

self.assertEqual(len(all_rhs), 3)

self.checkRHS(all_rhs[0], [0.0, 0.0, 0.0, 0.0])
self.checkRHS(all_rhs[1], [0.0, -2.0, 0.0, 0.0])
self.checkRHS(all_rhs[2], [0.0, -1.5, 0.0, -0.5])
Expand All @@ -291,6 +293,8 @@ def test_SetMultipleMovingLoadsConfigurationCombined(self):
cond.CalculateLocalSystem(lhs, rhs, self.model_part.ProcessInfo)
all_rhs.append(list(rhs))

self.assertEqual(len(all_rhs), 3)

self.checkRHS(all_rhs[0], [0.0, -2.0, 0.0, 0.0])
self.checkRHS(all_rhs[1], [0.0, -1.5, 0.0, -0.5])
self.checkRHS(all_rhs[2], [0.0, -1.0, 0.0, -1.0])
Expand Down Expand Up @@ -452,6 +456,8 @@ def test_SetMultipleMovingLoadsReverseGeomConfigurationCombined(self):
cond.CalculateLocalSystem(lhs, rhs, self.model_part.ProcessInfo)
all_rhs.append(list(rhs))

self.assertEqual(len(all_rhs), 3)

self.checkRHS(all_rhs[0], [0.0, 0.0, 0.0, 0.0])
self.checkRHS(all_rhs[1], [0.0, 0.0, 0.0, -2.0])
self.checkRHS(all_rhs[2], [0.0, -0.5, 0.0, -1.5])
Expand All @@ -467,6 +473,8 @@ def test_SetMultipleMovingLoadsReverseGeomConfigurationCombined(self):
cond.CalculateLocalSystem(lhs, rhs, self.model_part.ProcessInfo)
all_rhs.append(list(rhs))

self.assertEqual(len(all_rhs), 3)

self.checkRHS(all_rhs[0], [0.0, 0.0, 0.0, -2.0])
self.checkRHS(all_rhs[1], [0.0, -0.5, 0.0, -1.5])
self.checkRHS(all_rhs[2], [0.0, -1.0, 0.0, -1.0])
Expand Down

0 comments on commit a7d8c7d

Please sign in to comment.