Пример #1
0
  @Test
  public void containsIntegersWithinRange() {
    Range range = new Range(1, 3);

    assertThat(range.contains(1)).isTrue();
    assertThat(range.contains(2)).isTrue();
    assertThat(range.contains(3)).isTrue();
    assertThat(range.contains(4)).isFalse();
  }
Пример #2
0
  @Test
  public void failure() {
    Range range = new Range(1, 3);

    assertThat(range.contains(4)).isTrue();
  }