Skip to content

Commit 14f17f8

Browse files
committed
Add an example of inner difference for large strings
1 parent 26a4fc5 commit 14f17f8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/ex_unit/examples/difference.exs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,17 @@ defmodule Difference do
2626
end
2727

2828
test "large strings" do
29-
string1 = "oops"
29+
string1 = "short"
3030
string2 = "really long string that should not emit diff"
3131
assert string1 == string2
3232
end
3333

34+
test "large strings; inner" do
35+
tuple1 = {"short"}
36+
tuple2 = {"really long string that should not emit diff"}
37+
assert tuple1 == tuple2
38+
end
39+
3440
test "lists" do
3541
list1 = ["One", :ok, make_ref(), {}]
3642
list2 = ["Two", :ok, self(), {true}]

0 commit comments

Comments
 (0)