Skip to content
Browse files

Add tests for commit 1805854.

  • Loading branch information...
1 parent 1805854 commit 0cb4aca7fcbb511a7cb56c95940ad9bfd4d43fb0 @arjan arjan committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gen_smtp_server_session.erl
View
4 src/gen_smtp_server_session.erl
@@ -850,7 +850,9 @@ parse_encoded_address_test_() ->
?assertEqual({<<"God@heaven.af.mil">>, <<>>}, parse_encoded_address(<<"<\\God@heaven.af.mil>">>)),
?assertEqual({<<"God@heaven.af.mil">>, <<>>}, parse_encoded_address(<<"<\"God\"@heaven.af.mil>">>)),
?assertEqual({<<"God@heaven.af.mil">>, <<>>}, parse_encoded_address(<<"<@gateway.af.mil,@uucp.local:\"\\G\\o\\d\"@heaven.af.mil>">>)),
- ?assertEqual({<<"God2@heaven.af.mil">>, <<>>}, parse_encoded_address(<<"<God2@heaven.af.mil>">>))
+ ?assertEqual({<<"God2@heaven.af.mil">>, <<>>}, parse_encoded_address(<<"<God2@heaven.af.mil>">>)),
+ ?assertEqual({<<"God+extension@heaven.af.mil">>, <<>>}, parse_encoded_address(<<"<God+extension@heaven.af.mil>">>)),
+ ?assertEqual({<<"God~*$@heaven.af.mil">>, <<>>}, parse_encoded_address(<<"<God~*$@heaven.af.mil>">>))
end
},
{"Addresses that are sorta valid should parse",

0 comments on commit 0cb4aca

Please sign in to comment.
Something went wrong with that request. Please try again.