Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes main.cpp references in MathComponent tutorial #2042

Merged
merged 7 commits into from
May 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/Tutorials/MathComponent/Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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++
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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++
Expand Down Expand Up @@ -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
Expand Down