Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonymakarewicz committed Jul 15, 2024
1 parent 95ddfe6 commit 9b59440
Show file tree
Hide file tree
Showing 18 changed files with 119 additions and 328 deletions.
4 changes: 2 additions & 2 deletions bckp/option_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include <gmock/gmock.h>
#include "option.h"
#include "payoff.h"
#include "test_support.h"
#include "mock_classes.h"
#include "../config/test_support.h"
#include "../config/mock_classes.h"

using namespace ::testing;
using namespace TestSupport::MockImplementations;
Expand Down
1 change: 0 additions & 1 deletion include/option.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <memory>
#include <string>

#include "payoff.h"
#include "market_data.h"

Expand Down
1 change: 0 additions & 1 deletion include/payoff.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <memory>


class Payoff {
public:
Payoff() = default; // Default (no parameter) constructor
Expand Down
40 changes: 0 additions & 40 deletions main_example.cpp

This file was deleted.

107 changes: 0 additions & 107 deletions option_former.cpp

This file was deleted.

55 changes: 0 additions & 55 deletions option_former.h

This file was deleted.

Binary file removed option_pricer_description.docx
Binary file not shown.
91 changes: 0 additions & 91 deletions option_tests_former.cpp

This file was deleted.

1 change: 0 additions & 1 deletion src/option.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <stdexcept>
#include <typeinfo>
#include <cxxabi.h>

#include "option.h"

/* *****************
Expand Down
1 change: 0 additions & 1 deletion src/payoff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "payoff.h"
#include <ostream>


std::ostream& operator<<(std::ostream& os, const Payoff& payoff) {
payoff.print(os);
return os;
Expand Down
10 changes: 5 additions & 5 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ find_package(GTest REQUIRED)
# Define the test executable
add_executable(Option_tester
test_main.cpp
test_market_data.cpp
test_payoff.cpp
mock_classes.h
test_support.h
test_option.cpp
unit/test_market_data.cpp
unit/test_payoff.cpp
config/mock_classes.h
config/test_support.h
unit/test_option.cpp
../src/payoff.cpp
../src/market_data.cpp
../src/option.cpp
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_support.h → tests/config/test_support.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define TEST_CLASSES_H

#include <string>
#include "market_data.h"
#include "../../include/market_data.h"

namespace TestSupport {
// Minimal Mock Option class
Expand Down
Empty file removed tests/test_option.cpp
Empty file.
Loading

0 comments on commit 9b59440

Please sign in to comment.