Restructured project for simplicity and removed unused cpps
@@ -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)
|
||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 188 KiB After Width: | Height: | Size: 188 KiB |
|
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 83 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
@@ -1,28 +0,0 @@
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
|
||||
int math();
|
||||
void test_math();
|
||||
void IsEqual(bool lhs, bool rhs);
|
||||
|
||||
int main() {
|
||||
test_math();
|
||||
return 0;
|
||||
}
|
||||
|
||||
int math() {
|
||||
return 2+2;
|
||||
}
|
||||
|
||||
void test_math() {
|
||||
IsEqual(math(), 4);
|
||||
IsEqual(math(), 6);
|
||||
}
|
||||
|
||||
void IsEqual(bool lhs, bool rhs) {
|
||||
if (lhs == rhs) {
|
||||
std::cout << "Test Success" << std::endl;
|
||||
} else {
|
||||
std::cout << "Test Failure" << std::endl;
|
||||
}
|
||||
}
|
||||