Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
Example.cc File Reference

Unit/Integration Test Suite Example. More...

#include "./TestingBase.hh"
Include dependency graph for Example.cc:

Classes

class  ExampleTests
 Unit Test Class for the Example Tests. More...

Functions

 TEST_F (ExampleTests, Addition)
 Test the addition of two numbers.
 TEST_F (ExampleTests, Subtraction)
 Test the subtraction of two numbers.
 TEST_F (ExampleTests, Multiplication)
 Test the multiplication of two numbers.
 TEST_F (ExampleTests, Division)
 Test the division of two numbers.

Detailed Description

Unit/Integration Test Suite Example.

Author
Eli Byrd (edbgk.nosp@m.k@ms.nosp@m.t.edu)
Date
2023-07-24

Function Documentation

◆ TEST_F() [1/4]

TEST_F ( ExampleTests ,
Addition  )

Test the addition of two numbers.

Author
Eli Byrd (edbgk.nosp@m.k@ms.nosp@m.t.edu)
Date
2025-01-10
74{
75 int a = 2, b = 3;
76 m_nTestValue = a + b;
77
78 EXPECT_EQ(m_nTestValue, 5) << "Addition test failed.";
79}

◆ TEST_F() [2/4]

TEST_F ( ExampleTests ,
Subtraction  )

Test the subtraction of two numbers.

Author
Eli Byrd (edbgk.nosp@m.k@ms.nosp@m.t.edu)
Date
2025-01-10
88{
89 int a = 5, b = 3;
90 m_nTestValue = a - b;
91
92 EXPECT_EQ(m_nTestValue, 2) << "Subtraction test failed.";
93}

◆ TEST_F() [3/4]

TEST_F ( ExampleTests ,
Multiplication  )

Test the multiplication of two numbers.

Author
Eli Byrd (edbgk.nosp@m.k@ms.nosp@m.t.edu)
Date
2025-01-10
102{
103 int a = 4, b = 5;
104 m_nTestValue = a * b;
105
106 EXPECT_EQ(m_nTestValue, 20) << "Multiplication test failed.";
107}

◆ TEST_F() [4/4]

TEST_F ( ExampleTests ,
Division  )

Test the division of two numbers.

Author
Eli Byrd (edbgk.nosp@m.k@ms.nosp@m.t.edu)
Date
2025-01-10
116{
117 int a = 10, b = 2;
118 m_nTestValue = a / b;
119
120 EXPECT_EQ(m_nTestValue, 5) << "Division test failed.";
121}