You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is one obstacle: The tests won't pass anymore since the output of style_text is not the same as the reference with regard to the attributes. However, when written to the file, the text is identical. test_collection() uses utf8::transform_lines_enc(), which test whether the input and the transformed output is identical via identical(), which seems a bit too strict for our case. It seems to me that all.equal(..., check.attributes = FALSE) would be more accurate in our situation. Should we adapt test_collection to not rely on utf8::transform_lines_enc() for the comparison?
Activity
lorenzwalthert commentedon Aug 31, 2017
There is one obstacle: The tests won't pass anymore since the output of
style_textis not the same as the reference with regard to the attributes. However, when written to the file, the text is identical.test_collection()usesutf8::transform_lines_enc(), which test whether the input and the transformed output is identical viaidentical(), which seems a bit too strict for our case. It seems to me thatall.equal(..., check.attributes = FALSE)would be more accurate in our situation. Should we adapttest_collectionto not rely onutf8::transform_lines_enc()for the comparison?lorenzwalthert commentedon Sep 2, 2017
@krlmlr can you advise on that?
krlmlr commentedon Sep 2, 2017
Can you insert an
unclass()somewhere before checking equality or before callingtransform_...()?