diff --git a/docs/Tutorials/MathComponent/Tutorial.md b/docs/Tutorials/MathComponent/Tutorial.md index e6c9e3004f..f254ed2fce 100644 --- a/docs/Tutorials/MathComponent/Tutorial.md +++ b/docs/Tutorials/MathComponent/Tutorial.md @@ -796,7 +796,7 @@ Open `MathSender/CMakeLists.txt` and update the definition of set(UT_SOURCE_FILES "${CMAKE_CURRENT_LIST_DIR}/MathSender.fpp" "${CMAKE_CURRENT_LIST_DIR}/test/ut/Tester.cpp" - "${CMAKE_CURRENT_LIST_DIR}/test/ut/main.cpp" + "${CMAKE_CURRENT_LIST_DIR}/test/ut/TestMain.cpp" ) set(UT_AUTO_HELPERS ON) register_fprime_ut() @@ -976,7 +976,7 @@ void Tester :: This function calls `testDoMath` to test an `ADD` command. **Write a test macro:** -Add the following code to the file `main.cpp`, +Add the following code to the file `TestMain.cpp`, before the definition of the `main` function: ```c++ @@ -1074,7 +1074,7 @@ component sends a result back to `MathSender`. The main difference is that it invokes a port directly (the `mathResultIn` port) instead of sending a command. -1. Add the following test macro to `main.cpp`: +1. Add the following test macro to `TestMain.cpp`: ```c++ TEST(Nominal, Result) { @@ -1113,9 +1113,9 @@ and 10. This line tells the build system to make the unit test build depend on the `STest` build module. -1. Add `#include "STest/Random/Random.hpp"` to `main.cpp`. +1. Add `#include "STest/Random/Random.hpp"` to `TestMain.cpp`. -1. Add the following line to the `main` function of `main.cpp`, +1. Add the following line to the `main` function of `TestMain.cpp`, just before the return statement: ```c++ @@ -1735,7 +1735,7 @@ Instead we invoke `schedIn`. For each of the tests described below, you must add the corresponding function prototype to `Tester.hpp` -and the corresponding test macro to `main.cpp`. +and the corresponding test macro to `TestMain.cpp`. If you can't remember how to do it, look back at the `MathSender` examples. After writing each test, run all the tests and make sure