Skip to content

Commit

Permalink
Create Program_tests.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndskg authored Jul 21, 2023
1 parent 9166c25 commit 3dcc2ea
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions Program_tests.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
//
// Program_tests.cpp
// black-scholes
//
// Created by lyndskg on 7/19/23.
//

#include <stdio.h>
#include <cassert>
#include <iostream>
#include <fstream>

#include "main.cpp"
#include "Program.h"
#include "blackScholesModel.h"
#include "inputReader.h"
#include "unit_test_framework.h"


using namespace std;

using Test_func_t = void (*)();

// Demonstrate some basic assertions.
TEST(test_default_ctor) {
Program program;

ASSERT_EQUAL(program.inputMode, program.readInputMode());
ASSERT_TRUE(program.inputMode.empty());
ASSERT_EQUAL(program.inputMode, "");
ASSERT_FALSE(sizeof(program.inputMode) > 0);
ASSERT_FALSE(program.inputMode != "");
}

TEST(test_get_opts) {

}

0 comments on commit 3dcc2ea

Please sign in to comment.