From d43dd96924415195d734779147b72eeabd9683be Mon Sep 17 00:00:00 2001 From: Jakeisthesnake <28656653+Jakeisthesnake@users.noreply.github.com> Date: Tue, 20 Feb 2024 13:40:08 -0800 Subject: [PATCH] Test file location wasn't clear, added example file tree I also changed the names to match the example file tree Signed-off-by: Jakeisthesnake <28656653+Jakeisthesnake@users.noreply.github.com> --- source/Tutorials/Intermediate/Testing/Cpp.rst | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/source/Tutorials/Intermediate/Testing/Cpp.rst b/source/Tutorials/Intermediate/Testing/Cpp.rst index 6cc5b8ff198..df1cd19bbdb 100644 --- a/source/Tutorials/Intermediate/Testing/Cpp.rst +++ b/source/Tutorials/Intermediate/Testing/Cpp.rst @@ -12,13 +12,13 @@ Package Setup Source Code ^^^^^^^^^^^ -We'll start off with our code in a file called ``test/tutorial_test.cpp`` +We'll start off with our code in a file called ``/test/tutorial_test.cpp`` .. code-block:: c++ #include - TEST(package_name, a_first_test) + TEST(, a_first_test) { ASSERT_EQ(4, 2 + 2); } @@ -29,6 +29,18 @@ We'll start off with our code in a file called ``test/tutorial_test.cpp`` return RUN_ALL_TESTS(); } +Example package layout: +""""""""""""""""""""""" + +.. code-block:: + + /src// + CMakeList.txt + include/ + package.xml + src/ + tests/ + tutorial_test.cpp package.xml ^^^^^^^^^^^