From 1c32f3e2831aefdf50fd226d3e1b314c804afc3b Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Wed, 2 May 2012 02:30:52 -0400 Subject: remove dependency on gtest, remove all-static --- decoder/parser_test.cc | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'decoder/parser_test.cc') diff --git a/decoder/parser_test.cc b/decoder/parser_test.cc index da1fbd89..e2916e44 100644 --- a/decoder/parser_test.cc +++ b/decoder/parser_test.cc @@ -1,8 +1,7 @@ -#include -#include -#include -#include -#include +#define BOOST_TEST_MODULE ParseTest +#include +#include +#include "lattice.h" #include "hg.h" #include "trule.h" #include "bottom_up_parser.h" @@ -10,13 +9,7 @@ using namespace std; -class ChartTest : public testing::Test { - protected: - virtual void SetUp() { } - virtual void TearDown() { } -}; - -TEST_F(ChartTest,LanguageModel) { +BOOST_AUTO_TEST_CASE(Parse) { LatticeArc a(TD::Convert("ein"), 0.0, 1); LatticeArc b(TD::Convert("haus"), 0.0, 1); Lattice lattice(2); @@ -29,7 +22,3 @@ TEST_F(ChartTest,LanguageModel) { parser.Parse(lattice, &forest); } -int main(int argc, char **argv) { - testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); -} -- cgit v1.2.3