Skip to content

Commit

Permalink
strip before comparing so final newlines in files don't fail tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ericphanson committed Jun 11, 2024
1 parent 86d13c0 commit 079800c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/automerge-unit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ function comment_reference_test()
name = string("comment", "_pass_", pass, "_type_", type_name,
"_suggest_onepointzero_", suggest_onepointzero,
"_version_", version, "_is_jll_", is_jll)
@test_reference "reference_comments/$name.md" AutoMerge.comment_text_pass(type, suggest_onepointzero, version, is_jll)
strip_equal = (x, y) -> strip(x) == strip(y)
@test_reference "reference_comments/$name.md" AutoMerge.comment_text_pass(type, suggest_onepointzero, version, is_jll) by=strip_equal
end
else
for point_to_slack in (true, false)
Expand Down

0 comments on commit 079800c

Please sign in to comment.