Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.68 KB | None | 0 0
  1.       "having additional data in the first window" in new Context {
  2.         // arrange
  3.         val now = 240000L
  4.         val riskIndex = -0.1
  5.         val previousResults = List(
  6.           createAlgorithmResult(233000L, -0.12, 0.02), // Window 0
  7.           createAlgorithmResult(180000L, 0.2, 0.02),
  8.           createAlgorithmResult(60000L, 0.4, 100),
  9.           createAlgorithmResult(120000L, 0.3, 0.43)
  10.         )
  11.  
  12.         // act
  13.         val statusAndTrend = stService.getFilteredRIWithStatus(now, riskIndex, previousResults)
  14.  
  15.         // assert
  16.         statusAndTrend.filteredRI should be(-0.002 +- tolerance)
  17.         statusAndTrend.status should be(PatientStatus.AtRisk)
  18.       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement