Skip to content

Commit

Permalink
more coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertDober committed May 1, 2022
1 parent f1bc234 commit 6324f5a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/acceptance/earmark/pmap_test.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
defmodule Test.Acceptance.Earmark.PmapTest do
use ExUnit.Case

describe "pmap" do
test "it respects the order" do
result = ~W[AlPha BETA gamma] |> Earmark.pmap(&String.downcase/1)
assert result == ~W[alpha beta gamma]
end

test "with timeout" do
assert_raise Earmark.Error, fn ->
Earmark.pmap([1], fn _ -> Process.sleep(20) end, 10)
end
end
end

end
# SPDX-License-Identifier: Apache-2.0

0 comments on commit 6324f5a

Please sign in to comment.