- 
                Notifications
    
You must be signed in to change notification settings  - Fork 340
 
Closed
Labels
breaking change β οΈAPI change likely to affect existing codeAPI change likely to affect existing codeexpectation πfeaturea feature request or enhancementa feature request or enhancement
Description
It seems only to make unordered comparisons at the top level. I would expect nested lists to get the same mapequal treatment.
testthat::expect_mapequal(
  list(
    outer_1 = 1,
    outer_2 = list(
      inner_1 = 1,
      inner_2 = 2
    )
  ),
  list(
    outer_2 = list(
      inner_2 = 2,
      inner_1 = 1
    ),
    outer_1 = 1
  )
)
#> Error: act$val[exp_nms] not equal to exp$val.
#> Component "outer_2": Names: 2 string mismatches
#> Component "outer_2": Component 1: Mean relative difference: 1
#> Component "outer_2": Component 2: Mean relative difference: 0.5Created on 2021-12-31 by the reprex package (v2.0.1)
Metadata
Metadata
Assignees
Labels
breaking change β οΈAPI change likely to affect existing codeAPI change likely to affect existing codeexpectation πfeaturea feature request or enhancementa feature request or enhancement