Skip to content

Commit

Permalink
#17: increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
hudde committed Jan 6, 2024
1 parent 2ba930d commit 96448ee
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/testthat/test-Malliavin_European_Greeks.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# TODO: Digital options

test_that("Malliavin_European_Greeks is correct", {

# TODO

number_of_runs <- 30

Greeks <- c("fair_value", "delta", "vega", "theta", "rho", "gamma")
Expand All @@ -24,7 +20,7 @@ test_that("Malliavin_European_Greeks is correct", {
volatility <- runif(1, 0.01, 1)
model <- "Black_Scholes"
payoff <- sample(
c("call", "put"), 1)
c("call", "put", "cash_or_nothing_call", "cash_or_nothing_put"), 1)
antithetic <- sample(c(TRUE, FALSE), 1)
greek <- sample(Greeks, 1)

Expand Down

0 comments on commit 96448ee

Please sign in to comment.