You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@joshua.apache.org by mj...@apache.org on 2016/09/28 12:44:51 UTC

incubator-joshua git commit: re-enabled broken test, switched order of output and gold in assert

Repository: incubator-joshua
Updated Branches:
  refs/heads/7_confsystem 9988da405 -> c0ae52fcd


re-enabled broken test, switched order of output and gold in assert


Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/c0ae52fc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/c0ae52fc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/c0ae52fc

Branch: refs/heads/7_confsystem
Commit: c0ae52fcd193ecfd5ed06652fec890ef3699d44c
Parents: 9988da4
Author: Matt Post <po...@cs.jhu.edu>
Authored: Mon Sep 19 10:27:56 2016 -0400
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Mon Sep 19 10:27:56 2016 -0400

----------------------------------------------------------------------
 .../phrase/constrained/ConstrainedPhraseDecodingTest.java        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/c0ae52fc/joshua-core/src/test/java/org/apache/joshua/decoder/phrase/constrained/ConstrainedPhraseDecodingTest.java
----------------------------------------------------------------------
diff --git a/joshua-core/src/test/java/org/apache/joshua/decoder/phrase/constrained/ConstrainedPhraseDecodingTest.java b/joshua-core/src/test/java/org/apache/joshua/decoder/phrase/constrained/ConstrainedPhraseDecodingTest.java
index 10108b1..f97d47d 100644
--- a/joshua-core/src/test/java/org/apache/joshua/decoder/phrase/constrained/ConstrainedPhraseDecodingTest.java
+++ b/joshua-core/src/test/java/org/apache/joshua/decoder/phrase/constrained/ConstrainedPhraseDecodingTest.java
@@ -61,11 +61,11 @@ public class ConstrainedPhraseDecodingTest {
     decoder = null;
   }
 
-  @Test(enabled = false)
+  @Test
   public void givenInput_whenConstrainedPhraseDecoding_thenOutputIsAsExpected() throws IOException {
     final String translation = decode(INPUT).toString();
     final String gold = new String(readAllBytes(GOLD_PATH), UTF_8);
-    assertEquals(gold, translation);
+    assertEquals(translation, gold);
   }
 
   private Translation decode(String input) {