diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-09-28 16:04:41 +0100 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-09-28 16:04:41 +0100 |
commit | 1706bda5f393808583c6ab21a5d073b204827f52 (patch) | |
tree | c4f1054d093da42789c18625d9b30c6cbf43eb09 | |
parent | 747309fcb0e0b1c6d060a68286ba1cf5ed1fbfa4 (diff) |
fix broken compile on weights test
-rw-r--r-- | utils/weights_test.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/utils/weights_test.cc b/utils/weights_test.cc index 8a4c26ef..938b311f 100644 --- a/utils/weights_test.cc +++ b/utils/weights_test.cc @@ -14,11 +14,10 @@ class WeightsTest : public testing::Test { virtual void TearDown() { } }; - TEST_F(WeightsTest,Load) { - Weights w; - w.InitFromFile("test_data/weights"); - w.WriteToFile("-"); + vector<weight_t> v; + Weights::InitFromFile("test_data/weights", &v); + Weights::WriteToFile("-", v); } int main(int argc, char **argv) { |