environment_test.cpp
Go to the documentation of this file.
1 /*********************************************************************
2  *
3  * Software License Agreement
4  *
5  * Copyright (c) 2020,
6  * TU Dortmund - Institute of Control Theory and Systems Engineering.
7  * All rights reserved.
8  *
9  * This program is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation, either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program. If not, see <https://www.gnu.org/licenses/>.
21  *
22  * Authors: Christoph Rösmann
23  *********************************************************************/
24 
32 #include <iostream>
33 #include <memory>
34 
35 #include "gtest/gtest.h"
36 
37 // The fixture for testing class Foo.
38 class FooTest : public ::testing::Test
39 {
40  protected:
41  // You can do set-up work for each test here.
42  FooTest() {}
43  // You can do clean-up work that doesn't throw exceptions here.
44  virtual ~FooTest() {}
45  // If the constructor and destructor are not enough for setting up
46  // and cleaning up each test, you can define the following methods:
47 
48  // Code here will be called immediately after the constructor (right
49  // before each test).
50  virtual void SetUp() { std::cout << "nice" << std::endl; }
51  // Code here will be called immediately after each test (right
52  // before the destructor).
53  // virtual void TearDown();
54 
55  // The mock bar library shaed by all tests
56  // int m_bar;
57 };
58 
59 TEST_F(FooTest, blabla)
60 {
61  int testval = 5;
62  EXPECT_EQ(testval, 5);
63 }
64 
65 int main(int argc, char** argv)
66 {
67  ::testing::InitGoogleTest(&argc, argv);
68  int ret = RUN_ALL_TESTS();
69 
70  return ret;
71  // return 1;
72 }
73 
74 // int main()
75 //{
76 // std::cout << "Hello World!" << std::endl;
77 // return 0;
78 //}
virtual ~FooTest()
virtual void SetUp()
TEST_F(FooTest, blabla)
DenseIndex ret
Definition: level1_impl.h:59
int main(int argc, char **argv)


control_box_rst
Author(s): Christoph Rösmann
autogenerated on Mon Feb 28 2022 22:06:51