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/05/25 21:40:42 UTC
[3/3] incubator-joshua git commit: fixed test case
fixed test case
Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/72876dee
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/72876dee
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/72876dee
Branch: refs/heads/JOSHUA-273
Commit: 72876dee58111bc7555690df70fe4116e0e7dfca
Parents: 29d9197
Author: Matt Post <po...@cs.jhu.edu>
Authored: Wed May 25 17:39:10 2016 -0400
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Wed May 25 17:39:10 2016 -0400
----------------------------------------------------------------------
test/server/http/expected | 15 ---------------
test/server/http/output.expected | 15 +++++++++++++++
test/server/http/test.sh | 2 +-
3 files changed, 16 insertions(+), 16 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/72876dee/test/server/http/expected
----------------------------------------------------------------------
diff --git a/test/server/http/expected b/test/server/http/expected
deleted file mode 100644
index 622c646..0000000
--- a/test/server/http/expected
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "data": {
- "translations": [
- {
- "translatedText": "I_OOV love_OOV it_OOV when_OOV I_OOV get_OOV the_OOV house_OOV clean_OOV before_OOV the_OOV weekend_OOV ",
- "raw_nbest": [
- {
- "hyp": "I_OOV love_OOV it_OOV when_OOV I_OOV get_OOV the_OOV house_OOV clean_OOV before_OOV the_OOV weekend_OOV",
- "totalScore": 0.0
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/72876dee/test/server/http/output.expected
----------------------------------------------------------------------
diff --git a/test/server/http/output.expected b/test/server/http/output.expected
new file mode 100644
index 0000000..985e3b6
--- /dev/null
+++ b/test/server/http/output.expected
@@ -0,0 +1,15 @@
+{
+ "data": {
+ "translations": [
+ {
+ "translatedText": "I_OOV love_OOV it_OOV when_OOV I_OOV get_OOV the_OOV house_OOV clean_OOV before_OOV the_OOV weekend_OOV",
+ "raw_nbest": [
+ {
+ "hyp": "I_OOV love_OOV it_OOV when_OOV I_OOV get_OOV the_OOV house_OOV clean_OOV before_OOV the_OOV weekend_OOV",
+ "totalScore": 0.0
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/72876dee/test/server/http/test.sh
----------------------------------------------------------------------
diff --git a/test/server/http/test.sh b/test/server/http/test.sh
index c0ae90e..6f9291d 100755
--- a/test/server/http/test.sh
+++ b/test/server/http/test.sh
@@ -26,7 +26,7 @@ curl -s http://localhost:9010/?q=I%20love%20it%20when%20I%20get%20the%20house%20
kill -15 $serverpid 2> /dev/null
-diff -u output expected > diff
+diff -u output output.expected > diff
if [[ $? -eq 0 ]]; then
rm -f server.log output log diff