pola-rs / r-polars

Bring polars to R
https://pola-rs.github.io/r-polars/
Other
405 stars 35 forks source link

Refactor `expect_grepl_error()` #1005

Closed etiennebacher closed 2 months ago

etiennebacher commented 2 months ago

This PR rewrites expect_grepl_error() and uses it instead of expect_error() since the latter doesn't work well with polars error's structure (https://github.com/pola-rs/r-polars/pull/987#discussion_r1545263396).

We could also overwrite expect_error() instead of having this additional function (after all we already overwrite expect_snapshot_file()).