Exemplo n.º 1
0
  @Test
  public void sumOfUnknownExpressionAndKnownExpressionIsUnknownExpression() {

    BaselineProfile profileWithUnknownExpression = buildProfileWithUnknownExpression();

    assertThat(subject.getExpression(factor1).isKnown(), is(true));
    assertThat(subject.getExpression(factor2).isKnown(), is(true));
    subject.sumProfile(profileWithUnknownExpression);
    assertThat(subject.getExpression(factor1).isKnown(), is(false));
    assertThat(subject.getExpression(factor2).isKnown(), is(true));
  }
Exemplo n.º 2
0
  @Test
  public void foldUnknownExpressionIsUnknownExpression() {
    BaselineProfile profileWithUnknownExpression = buildProfileWithUnknownExpression();

    BaselineProfile sumProfile = profileWithUnknownExpression.foldProfile(3);
    assertThat(sumProfile.getExpression(factor1).isKnown(), is(false));
  }