[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/2php/CaffeOnACL/master/unit_tests/test.cpp [Back]  [Original]

#include "gtest/gtest.h"


template 
class foo : public ::testing::Test {

public:
   foo(){};
  ~foo(){};

   TypeParam data;
};


typedef ::testing::Types TestDtype;

TYPED_TEST_CASE(foo,TestDtype);

TYPED_TEST(foo,test1)
{

    TypeParam a=10;

   this->data=10;

   EXPECT_EQ(this->data,a);

}


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

Web Proxy Viewer  |  New URL  |  Original Page