mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-16 23:10:31 +03:00
stub out unit test
This commit is contained in:
parent
d737a352b3
commit
266e36c440
@ -6,6 +6,9 @@
|
||||
|
||||
#include <util/string_piece.hh>
|
||||
|
||||
#include "moses/Factor.h"
|
||||
#include "moses/Sentence.h"
|
||||
|
||||
#include "StatelessFeatureFunction.h"
|
||||
#include "FFState.h"
|
||||
|
||||
|
36
moses/FF/SparseHieroReorderingFeatureTest.cpp
Normal file
36
moses/FF/SparseHieroReorderingFeatureTest.cpp
Normal file
@ -0,0 +1,36 @@
|
||||
/***********************************************************************
|
||||
Moses - factored phrase-based language decoder
|
||||
Copyright (C) 2013- University of Edinburgh
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
***********************************************************************/
|
||||
#include <iostream>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
#include "SparseHieroReorderingFeature.h"
|
||||
|
||||
using namespace Moses;
|
||||
using namespace std;
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(shrf)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(lexical_rule)
|
||||
{
|
||||
SparseHieroReorderingFeature feature("name=shrf");
|
||||
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
@ -64,7 +64,7 @@ lib moses :
|
||||
: #exceptions
|
||||
ThreadPool.cpp
|
||||
SyntacticLanguageModel.cpp
|
||||
*Test.cpp Mock*.cpp
|
||||
*Test.cpp Mock*.cpp FF/*Test.cpp
|
||||
FF/Factory.cpp
|
||||
]
|
||||
headers FF_Factory.o LM//LM TranslationModel/CompactPT//CompactPT synlm ThreadPool rt
|
||||
@ -74,5 +74,5 @@ alias headers-to-install : [ glob-tree *.h ] ;
|
||||
|
||||
import testing ;
|
||||
|
||||
unit-test moses_test : [ glob *Test.cpp Mock*.cpp ] moses headers ..//z ../OnDiskPt//OnDiskPt ..//boost_unit_test_framework ;
|
||||
unit-test moses_test : [ glob *Test.cpp Mock*.cpp FF/*Test.cpp ] moses headers ..//z ../OnDiskPt//OnDiskPt ..//boost_unit_test_framework ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user