test_that("OptimizerNLoptr", { skip_on_os("windows") skip_if_not_installed("nloptr") z = test_optimizer_1d("nloptr", algorithm = "NLOPT_LN_BOBYQA", xtol_rel = -1, xtol_abs = -1, ftol_rel = -1, ftol_abs = -1, term_evals = 5L) expect_class(z$optimizer, "OptimizerNLoptr") expect_output(print(z$optimizer), "OptimizerNLoptr") })