diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-09-28 16:19:09 +0100 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-09-28 16:19:09 +0100 |
commit | 52e09d888692be28174ddf21afbae004d84c0d89 (patch) | |
tree | fe3a8d8c42b80c0895ec83e7ffee590187233a0c /decoder | |
parent | 9c21032df71dff0a00300d78cec4de4a2adeffd7 (diff) |
test fixes
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/grammar_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/grammar_test.cc b/decoder/grammar_test.cc index 62b8f958..cde00efa 100644 --- a/decoder/grammar_test.cc +++ b/decoder/grammar_test.cc @@ -15,12 +15,12 @@ using namespace std; class GrammarTest : public testing::Test { public: GrammarTest() { - wts.InitFromFile("test_data/weights.gt"); + Weights::InitFromFile("test_data/weights.gt", &wts); } protected: virtual void SetUp() { } virtual void TearDown() { } - Weights wts; + vector<weight_t> wts; }; TEST_F(GrammarTest,TestTextGrammar) { |