File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -878,7 +878,8 @@ defmodule ExUnit.Diff do
878878 end
879879
880880 defp rebuild_split_strings ( % { contents: contents , delimiter: delimiter } , right ) do
881- % { contents: contents ++ [ { false , right } ] , delimiter: delimiter }
881+ { new_right , diff } = extract_diff_meta ( right )
882+ % { contents: contents ++ [ { diff , new_right } ] , delimiter: delimiter }
882883 end
883884
884885 defp rebuild_concat_string ( literal , nil , [ ] ) do
Original file line number Diff line number Diff line change @@ -1133,6 +1133,12 @@ defmodule ExUnit.DiffTest do
11331133 "-<<trap::binary-size(3)>> <> \" baz\" -" ,
11341134 "+\" foobar\" +"
11351135 )
1136+
1137+ refute_diff (
1138+ "hello " <> << _ :: binary - size ( 6 ) >> = "hello world" ,
1139+ "\" hello \" <> -<<_::binary-size(6)>>-" ,
1140+ "\" hello +world+\" "
1141+ )
11361142 end
11371143
11381144 test "underscore" do
You can’t perform that action at this time.
0 commit comments