Skip to content

Commit

Permalink
mix format
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Mar 22, 2024
1 parent b78cf33 commit 7983957
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions test/asciinema/recordings/snapshot_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ defmodule Asciinema.Recordings.SnapshotTest do
|> Snapshot.regroup(:segments)
|> Map.get(:lines)

assert lines == [[
{" f", %{fg: 1}, 1},
{"oo", %{fg: 2}, 1},
{" bar", %{fg: 1}, 1},
{"连", %{fg: 1}, 2},
]]
assert lines == [
[
{" f", %{fg: 1}, 1},
{"oo", %{fg: 2}, 1},
{" bar", %{fg: 1}, 1},
{"连", %{fg: 1}, 2}
]
]
end

test "keeps special chars in their own segments" do
Expand All @@ -84,13 +86,15 @@ defmodule Asciinema.Recordings.SnapshotTest do
|> Snapshot.regroup(:segments)
|> Map.get(:lines)

assert lines == [[
{"▚", %{}, 1},
{"foo", %{}, 1},
{"▚", %{}, 1},
{"bar", %{}, 1},
{"▚", %{}, 1},
]]
assert lines == [
[
{"▚", %{}, 1},
{"foo", %{}, 1},
{"▚", %{}, 1},
{"bar", %{}, 1},
{"▚", %{}, 1}
]
]
end
end

Expand Down

0 comments on commit 7983957

Please sign in to comment.