Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbgottesman <bgottesman@1f5c12ca-751b-0410-a591-d2e778427230>2011-08-05 20:37:49 +0400
committerbgottesman <bgottesman@1f5c12ca-751b-0410-a591-d2e778427230>2011-08-05 20:37:49 +0400
commitd521287a3f3b95df44a7368c3e8bee4f15fed47f (patch)
tree7d04bc684e42cdea35b71ca988ffbb67130321b4 /regression-testing
parent76c3ef4dbafcc958569a39173dd8dcedfcfe5486 (diff)
move commas to after here-docs, to hopefully make test cases more readable; and remove unused import
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@4125 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'regression-testing')
-rw-r--r--regression-testing/run-test-detokenizer.t17
1 files changed, 10 insertions, 7 deletions
diff --git a/regression-testing/run-test-detokenizer.t b/regression-testing/run-test-detokenizer.t
index d4e7afa1d..166a962c1 100644
--- a/regression-testing/run-test-detokenizer.t
+++ b/regression-testing/run-test-detokenizer.t
@@ -14,8 +14,6 @@ use File::Basename ('dirname');
use IPC::Run3;
use Getopt::Long;
-use MosesRegressionTesting;
-
GetOptions("detokenizer=s" => \(my $detokenizer),
"results-dir=s"=> \(my $results_dir)
) or exit 1;
@@ -39,10 +37,11 @@ use Test::More;
# A simple English test
&runDetokenizerTest("TEST_ENGLISH_EASY", "en",
-<<'TOK',
+<<'TOK'
This sentence is really simple , so it should not be hard to detokenize .
This one is no more difficult , but , hey , it is on a new line .
TOK
+,
<<'EXP'
This sentence is really simple, so it should not be hard to detokenize.
This one is no more difficult, but, hey, it is on a new line.
@@ -51,9 +50,10 @@ EXP
# An English test involving double-quotes
&runDetokenizerTest("TEST_ENGLISH_DOUBLEQUOTES", "en",
-<<'TOK',
+<<'TOK'
This is a somewhat " less simple " test .
TOK
+,
<<'EXP'
This is a somewhat "less simple" test.
EXP
@@ -61,9 +61,10 @@ EXP
# A simple French test
&runDetokenizerTest("TEST_FRENCH_EASY", "fr",
-<<'TOK',
+<<'TOK'
Voici une phrase simple .
TOK
+,
<<'EXP'
Voici une phrase simple.
EXP
@@ -71,9 +72,10 @@ EXP
# A French test involving an apostrophe
&runDetokenizerTest("TEST_FRENCH_APOSTROPHE", "fr",
-<<'TOK',
+<<'TOK'
Moi , j' ai une apostrophe .
TOK
+,
<<'EXP'
Moi, j'ai une apostrophe.
EXP
@@ -84,9 +86,10 @@ TODO: {
# A French test involving an apostrophe on the second-last word
&runDetokenizerTest("TEST_FRENCH_APOSTROPHE_PENULTIMATE", "fr",
-<<'TOK',
+<<'TOK'
de musique rap issus de l' immigration
TOK
+,
<<'EXP'
de musique rap issus de l'immigration
EXP