markvanderloo / tinytest

A lightweight, no-dependency, but full-featured package for unit testing in R
GNU General Public License v3.0
223 stars 20 forks source link

[Feature request] expect_length() #99

Closed LiNk-NY closed 2 years ago

LiNk-NY commented 2 years ago

Hi Mark, @markvanderloo

Thanks for making this great package!

Is it possible to add an expect_length function for convenience?

## currently
expect_identical(
    length(selectSome(letters, maxToShow = 5)), 5L
)
## requested
expect_length(
    selectSome(letters, maxToShow = 5)), 5
)

Best regards, Marcel

markvanderloo commented 2 years ago

done

LiNk-NY commented 2 years ago

Thanks so much @markvanderloo !