xlex() returns a tibble with an extra class "xlex" for print.xlex(). This
extra class is now detected by testthat::expect_equal() when comparing it to a
contrived tibble.
The tests now use a wrapper of xlex() called un_xlex() that strips the
"xlex" class so that it can be safely compared with a tibble.
Alternatively, I could have defined a wrapper class for tribble() that added
the extra class, but it would have been more trouble to format the code nicely.
xlex()
returns a tibble with an extra class"xlex"
forprint.xlex()
. This extra class is now detected bytestthat::expect_equal()
when comparing it to a contrived tibble.The tests now use a wrapper of
xlex()
calledun_xlex()
that strips the"xlex"
class so that it can be safely compared with a tibble.Alternatively, I could have defined a wrapper class for
tribble()
that added the extra class, but it would have been more trouble to format the code nicely.