summaryrefslogtreecommitdiff
path: root/decoder/grammar_test.cc
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-09-28 16:19:09 +0100
committerChris Dyer <cdyer@cs.cmu.edu>2011-09-28 16:19:09 +0100
commitb77d23a3032f42be3705e88ae1734bae779fb9a3 (patch)
tree28d072e5344ce622917c5daf525aec88ef56b607 /decoder/grammar_test.cc
parent5e83a23897b5160fa96788c5828d23ab1912d1a6 (diff)
test fixes
Diffstat (limited to 'decoder/grammar_test.cc')
-rw-r--r--decoder/grammar_test.cc4
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) {