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 /decoder/hg_test.h | |
parent | 9f001a7d10ccf138861c72bb791403c19d30d084 (diff) | |
parent | d59bad87d2b3ce1abf881b0c4e5bbc7648cf368f (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'decoder/hg_test.h')
-rw-r--r-- | decoder/hg_test.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/decoder/hg_test.h b/decoder/hg_test.h index 3da6533c..043f970a 100644 --- a/decoder/hg_test.h +++ b/decoder/hg_test.h @@ -5,10 +5,7 @@ #include "hg.h" #include "hg_io.h" #include <sstream> -#include <gtest/gtest.h> -using namespace std; -using namespace testing; #pragma GCC diagnostic ignored "-Wunused-variable" namespace { @@ -25,7 +22,7 @@ Name perro_wts="SameFirstLetter 1 LongerThanPrev 1 ShorterThanPrev 1 GlueTop 0.0 } // you can inherit from this or just use the static methods -struct HGSetup : public Test { +struct HGSetup { enum { HG, HG_int, @@ -43,11 +40,11 @@ struct HGSetup : public Test { static void Json(Hypergraph *hg,std::string const& json) { std::istringstream i(json); - ASSERT_TRUE(HypergraphIO::ReadFromJSON(&i, hg)); + HypergraphIO::ReadFromJSON(&i, hg); } static void JsonFile(Hypergraph *hg,std::string f) { ReadFile rf(f); - ASSERT_TRUE(HypergraphIO::ReadFromJSON(rf.stream(), hg)) << "read from HG file "<<f; + HypergraphIO::ReadFromJSON(rf.stream(), hg); } static void JsonTestFile(Hypergraph *hg,std::string n) { JsonFile(hg,"test_data/"+n); |