diff options
author | Patrick Simianer <simianer@cl.uni-heidelberg.de> | 2012-05-02 15:03:24 +0200 |
---|---|---|
committer | Patrick Simianer <simianer@cl.uni-heidelberg.de> | 2012-05-02 15:03:24 +0200 |
commit | 3032285101026b47b0e5bacc67723efc2eadf390 (patch) | |
tree | a5ad0239fa24d320671ebd78925fab2d187624a3 /utils/weights_test.cc | |
parent | 9f001a7d10ccf138861c72bb791403c19d30d084 (diff) | |
parent | d59bad87d2b3ce1abf881b0c4e5bbc7648cf368f (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'utils/weights_test.cc')
-rw-r--r-- | utils/weights_test.cc | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/utils/weights_test.cc b/utils/weights_test.cc index 938b311f..4be4c40f 100644 --- a/utils/weights_test.cc +++ b/utils/weights_test.cc @@ -1,26 +1,12 @@ -#include <cassert> -#include <iostream> -#include <fstream> -#include <vector> -#include <gtest/gtest.h> +#define BOOST_TEST_MODULE WeightsTest +#include <boost/test/unit_test.hpp> +#include <boost/test/floating_point_comparison.hpp> #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) { +BOOST_AUTO_TEST_CASE(Load) { vector<weight_t> v; Weights::InitFromFile("test_data/weights", &v); Weights::WriteToFile("-", v); } - -int main(int argc, char **argv) { - testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); -} |