Skip to content

Commit

Permalink
use assert_set_equal
Browse files Browse the repository at this point in the history
  • Loading branch information
bblodfon committed Dec 10, 2024
1 parent 8356e68 commit 10608c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/EnsembleFSResult.R
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@ EnsembleFSResult = R6Class("EnsembleFSResult",
assert_class(efsr, "EnsembleFSResult")

# Ensure both objects have the same task features
assert_true(setequal(private$.features, get_private(efsr)$.features))
assert_set_equal(private$.features, get_private(efsr)$.features)

# Ensure both objects have the same (outer) measure
assert_true(private$.measure$id == get_private(efsr)$.measure$id)
assert_set_equal(private$.measure$id, get_private(efsr)$.measure$id)

# Set inner measure to NULL if the measure ids are different or one of them is NULL
inner_msr = private$.inner_measure
Expand Down

0 comments on commit 10608c7

Please sign in to comment.