double expected = structureScoringMatrix.score(
stemAlphabet.mapAndHash("U|G"), stemAlphabet.mapAndHash("U|G"))
+ structureScoringMatrix.score(stemAlphabet.mapAndHash("G|C"),
stemAlphabet.mapAndHash("G|C"))
- (structureScoringMatrix.score(stemAlphabet.mapAndHash("U|G"),
stemAlphabet.emptyLetterHashed()) + structureScoringMatrix
.score(stemAlphabet.mapAndHash("G|C"),
stemAlphabet.emptyLetterHashed()));
Assert.assertEquals(expected, diff, 0.01);
}