From b591b345fded426f46e0347c515012a689fe0ec4 Mon Sep 17 00:00:00 2001 From: Roc Boronat Date: Tue, 15 Sep 2015 23:50:27 +0200 Subject: [PATCH] Adding .nte to .net suggestion Fix #32 --- .../com/fewlaps/quitnowemailsuggester/EmailSuggester.java | 3 ++- .../fewlaps/quitnowemailsuggester/EmailSuggestorTest.java | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/fewlaps/quitnowemailsuggester/EmailSuggester.java b/src/main/java/com/fewlaps/quitnowemailsuggester/EmailSuggester.java index 900eef4..9e5e014 100644 --- a/src/main/java/com/fewlaps/quitnowemailsuggester/EmailSuggester.java +++ b/src/main/java/com/fewlaps/quitnowemailsuggester/EmailSuggester.java @@ -25,7 +25,8 @@ public class EmailSuggester { new EmailCorrection(".comm", DOTCOM), new EmailCorrection(".cxom", DOTCOM), new EmailCorrection(".coml", DOTCOM), - new EmailCorrection(".ney", DOTNET) + new EmailCorrection(".ney", DOTNET), + new EmailCorrection(".nte", DOTNET) ); public List domainCorrections = Arrays.asList( diff --git a/src/test/java/com/fewlaps/quitnowemailsuggester/EmailSuggestorTest.java b/src/test/java/com/fewlaps/quitnowemailsuggester/EmailSuggestorTest.java index d1179cb..a6effb5 100644 --- a/src/test/java/com/fewlaps/quitnowemailsuggester/EmailSuggestorTest.java +++ b/src/test/java/com/fewlaps/quitnowemailsuggester/EmailSuggestorTest.java @@ -301,4 +301,9 @@ public void shouldFixYcomIssue() throws InvalidEmailException { public void shouldFixZcomIssue() throws InvalidEmailException { assertEquals("roc@fewlaps.com", es.getSuggestedEmail("roc@fewlaps.zcom")); } + + @Test + public void shouldFixNteIssue() throws InvalidEmailException { + assertEquals("roc@rocboronat.net", es.getSuggestedEmail("roc@rocboronat.nte")); + } }