Skip to content

Commit be5ca08

Browse files
committed
Add Black Scholes to test suite
1 parent abc0f8e commit be5ca08

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Tests CMakeLists.txt
2-
31
# Find GTest
42
find_package(GTest)
53

@@ -22,7 +20,7 @@ set(TEST_SOURCES
2220
# test_portfolio.cpp
2321

2422
# Models tests
25-
# test_black_scholes.cpp
23+
test_black_scholes.cpp
2624
# test_greeks.cpp
2725
# test_implied_volatility.cpp
2826

@@ -45,18 +43,6 @@ set(TEST_SOURCES
4543
# test_time_utils.cpp
4644
)
4745

48-
# Create a placeholder test file if no tests are defined yet
49-
if(NOT TEST_SOURCES)
50-
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/placeholder_test.cpp "
51-
#include <gtest/gtest.h>
52-
53-
TEST(PlaceholderTest, AlwaysPass) {
54-
EXPECT_TRUE(true);
55-
}
56-
")
57-
set(TEST_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/placeholder_test.cpp)
58-
endif()
59-
6046
# Add test executable
6147
add_executable(thales_tests ${TEST_SOURCES})
6248

0 commit comments

Comments
 (0)