Closed mb706 closed 3 years ago
All terminators work with an empty archive. TerminatorRunTime
needs Archive$start_time
which is set by the Optimizer
. We could add an error message if Archive$start_time = NULL
.
archive = Archive$new(ps(x = p_dbl()), ps(x = p_dbl()))
archive$start_time = Sys.time()
trm("run_time")$is_terminated(archive)
# > [1] FALSE
The unit test check now if all terminators work with an empty archive. TerminatorRunTime$is_terminated()
returns FALSE
if Archive$start_time
is not set and the documentation mentions that archive$start_time
must be set. Closed by 1c89ab8eebb8cc07e2bb070ed23527cf1240a152 and 116ac3966def945af56123d9fe9adeab69410217.
Should probably be automatically tested with all terminators.