Skip to content

Commit

Permalink
Fixing typos in unit testing (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStarch authored Oct 12, 2023
1 parent 7aa9d05 commit 50932fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/unit-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ fprime-util check

Now that unit tests have been written, we can add our first unit test case. First, remove the default `ToDo` test and add a new test case called `testBlinking`.

In `led-blinker/Components/Led/test-ut/Tester.hpp` rename the declaration for `testToDo` to be `testBlinking` instead:
In `led-blinker/Components/Led/test/ut/Tester.hpp` rename the declaration for `testToDo` to be `testBlinking` instead:

```c++
void testBlinking();
```

In `led-blinker/Components/Led/test-ut/Tester.cpp` rename the definition for `testToDo` to be `testBlinking`:
In `led-blinker/Components/Led/test/ut/Tester.cpp` rename the definition for `testToDo` to be `testBlinking`:

```c++
void Tester ::
Expand All @@ -85,7 +85,7 @@ In `led-blinker/Components/Led/test-ut/Tester.cpp` rename the definition for `te
}
```
In `led-blinker/Components/Led/test-ut/TestMain.cpp`:
In `led-blinker/Components/Led/test/ut/TestMain.cpp`:
```c++
TEST(Nominal, TestBlinking) {
Expand All @@ -103,7 +103,7 @@ Use `fprime-util check` to make sure the new check builds and passes.

The first test we will write is to test that the LED doesn't blink when blinking is disabled.

Add the following code to the `testBlinking` method in `led-blinker/Components/Led/test-ut/Tester.cpp`:
Add the following code to the `testBlinking` method in `led-blinker/Components/Led/test/ut/Tester.cpp`:

```c++
// Ensure LED stays off when blinking is disabled
Expand Down

0 comments on commit 50932fe

Please sign in to comment.