Skip to content

Commit

Permalink
renaming inflammation tests, making sure tests do not test default va…
Browse files Browse the repository at this point in the history
…lues
  • Loading branch information
allison-li-1016 committed Jan 29, 2025
1 parent 8beb88a commit e71c02e
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,25 +60,26 @@ public void setUp() {
}

@Test
public void testConstructor() {
public void constructorInitiatesValues() {
assertNotNull(inflammation);
assertEquals(0, inflammation.getInternal("IL-2"));
assertEquals(1.0, inflammation.getInternal("IL2R_total"));
}

@Test
public void testStep() {
public void stepCalculatesIL2() {
inflammation.step(mockRandom, mockSimulation);
assertTrue(inflammation.getInternal("IL-2") >= 0);
}

@Test
public void testGetInternal() {
assertEquals(0, inflammation.getInternal("IL-2"));
public void getInternalReturnsInternalValue() {
inflammation.amts[PatchProcessInflammation.IL2_INT_TOTAL] = 10.0;
assertEquals(10.0, inflammation.getInternal("IL-2"));
}

@Test
public void testSetInternal() {
public void setInternalSetsLayer() {
inflammation.setInternal("IL-2", 10.0);
assertEquals(10.0, inflammation.getInternal("IL-2"));
}
Expand Down

0 comments on commit e71c02e

Please # to comment.