Skip to content

Commit

Permalink
Github Windows platform complaining
Browse files Browse the repository at this point in the history
  • Loading branch information
Avraham Adler committed Feb 22, 2024
1 parent b091705 commit d83ef1e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions inst/tinytest/test_MiniMaxApprox.R
Original file line number Diff line number Diff line change
Expand Up @@ -204,18 +204,14 @@ if ("windows" %in% tolower(Sys.info()[["sysname"]])) {
}

## Test unsuccessful restart due to two failures
errMsg <- paste("The algorithm neither converged when looking for a",
"polynomial of length 22 nor when looking for a polynomial of",
"degree 23.")
errMsg <- "The algorithm neither converged when looking for a"

## Below case has failover to QR
expect_error(minimaxApprox(sin, 0, pi / 2, 22L), errMsg)
expect_error(minimaxApprox(sin, 0, pi / 2, 15L), errMsg)

# Test tailtol NULL
errMsg <- paste("The algorithm did not converge when looking for a",
"polynomial of degree 22 and NULL was passed to the tailtol",
"option.")
expect_error(minimaxApprox(sin, 0, pi / 2, 22L, opts = list(tailtol = NULL)),
errMsg <- "The algorithm did not converge when looking for a"
expect_error(minimaxApprox(sin, 0, pi / 2, 15L, opts = list(tailtol = NULL)),
errMsg)

## Test unsuccessful restart due to one failures and n + 1 not 0. This must be
Expand Down

0 comments on commit d83ef1e

Please sign in to comment.