summaryrefslogtreecommitdiff
path: root/utils/weights_test.cc
blob: 0d5d851247ebce1e23867d461ca87282f30f20a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#define BOOST_TEST_MODULE WeightsTest
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include "weights.h"

using namespace std;

BOOST_AUTO_TEST_CASE(Load) {
  vector<weight_t> v;
  Weights::InitFromFile(TEST_DATA "/weights", &v);
  Weights::WriteToFile("-", v);
}