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
878
878
end
879
879
880
880
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 }
882
883
end
883
884
884
885
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
1133
1133
"-<<trap::binary-size(3)>> <> \" baz\" -" ,
1134
1134
"+\" foobar\" +"
1135
1135
)
1136
+
1137
+ refute_diff (
1138
+ "hello " <> << _ :: binary - size ( 6 ) >> = "hello world" ,
1139
+ "\" hello \" <> -<<_::binary-size(6)>>-" ,
1140
+ "\" hello +world+\" "
1141
+ )
1136
1142
end
1137
1143
1138
1144
test "underscore" do
You can’t perform that action at this time.
0 commit comments