Skip to content

Commit

Permalink
Fix warning in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkowalski committed Feb 5, 2021
1 parent 1dc3a1f commit 2a2a8f2
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions test/surgex/parser/parsers/email_parser_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ defmodule Surgex.Parser.EmailParserTest do
end

test "valid input" do
valid_emails =
[
"me@example.com",
"[email protected]",
"[email protected]",
"me+you@gmail.com",
"other.email-with-hyphen@example.com",
"\".John.Doe\"@example.com",
"user%[email protected]"
]
|> Enum.each(fn email ->
assert EmailParser.call(email) == {:ok, email}
end)
valid_emails = [
"[email protected]",
"example@superlongdomainloremipsumdolor.co.uk",
"[email protected]",
"[email protected]",
"other.email-with-hyphen@example.com",
"\".John.Doe\"@example.com",
"user%example.com@example.org"
]

Enum.each(valid_emails, fn email ->
assert EmailParser.call(email) == {:ok, email}
end)
end

test "invalid input" do
Expand Down

0 comments on commit 2a2a8f2

Please sign in to comment.