Skip to content

Commit

Permalink
Fixed last remaining test failure #95
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Dec 28, 2016
1 parent c4d5c4f commit ea274d5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions flat/style/testflat.js
Original file line number Diff line number Diff line change
Expand Up @@ -654,11 +654,12 @@ function testeval(data) {
} else if (testname == "correction_textmerge") {
var id = findcorrectionbytext("wegreden");
if (id) {
if (assert_ok(annotations[id + "/new/t/current"], "Corrected annotation exists")) {
globalassert.equal(annotations[id + "/new/t/current"].incorrection, id, "Checking if annotation is in correction");
if (assert_ok(annotations[id + "/t/current"], "Corrected annotation exists")) {
globalassert.equal(annotations[id + "/t/current"].incorrection, id, "Checking if annotation is in correction");
}
if (assert_ok(annotations[id], "Correction exists")) {
globalassert.equal(annotations[id].class, "uncertain", "Checking correction and its class");
var correction_id = annotations[id].incorrection;
if (assert_ok(annotations[correction_id], "Correction exists")) {
globalassert.equal(annotations[correction_id].class, "uncertain", "Checking correction and its class");
}
}
} else if ((testname == "correction_tokenannotationchange") ) {
Expand Down

0 comments on commit ea274d5

Please sign in to comment.