Removed Unity testing

This commit is contained in:
Trianta 2023-12-08 23:01:30 -06:00
parent be7ef06a2d
commit 2eef3d36f4
3 changed files with 0 additions and 32 deletions

View File

@ -10,7 +10,3 @@ set(CMAKE_CXX_EXTENSIONS OFF)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
add_subdirectory(src) add_subdirectory(src)
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
add_subdirectory(test)
endif()

View File

@ -1,7 +0,0 @@
find_package(unity REQUIRED)
include_directories(${CMAKE_SOURCE_DIR}/src)
add_executable(testing
test.cpp
)
set_target_properties(testing PROPERTIES LINKER_LANGUAGE CXX)
target_link_libraries(testing unity)

View File

@ -1,21 +0,0 @@
#include <unity/unity.h>
#include <unity/unity_internals.h>
void setUp() { ; }
void tearDown() { ; }
int Math(void) {
return 2+2;
}
void test_Math(void) {
TEST_ASSERT_EQUAL_INT(4, Math());
}
int main(void) {
UNITY_BEGIN();
RUN_TEST(test_Math);
return UNITY_END();
}