summaryrefslogtreecommitdiff
path: root/utils/weights_test.cc
blob: 8a4c26eff9fd2b1e02a0c0747fc4142fb7e28350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <cassert>
#include <iostream>
#include <fstream>
#include <vector>
#include <gtest/gtest.h>
#include "weights.h"
#include "tdict.h"

using namespace std;

class WeightsTest : public testing::Test {
 protected:
  virtual void SetUp() { }
  virtual void TearDown() { }
};
       

TEST_F(WeightsTest,Load) {
  Weights w;
  w.InitFromFile("test_data/weights");
  w.WriteToFile("-");
}

int main(int argc, char **argv) {
  testing::InitGoogleTest(&argc, argv);
  return RUN_ALL_TESTS();
}