Skip to content

Commit 5c295f9

Browse files
Cleanup tests, making them easier to follow and reducing code duplication
1 parent 2d4da6c commit 5c295f9

File tree

3 files changed

+172
-227
lines changed

3 files changed

+172
-227
lines changed

Plugins/SequencePlugin/Source/SequencePlugin/Private/SequenceAuthenticator.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -682,17 +682,16 @@ FString USequenceAuthenticator::ValidateEmail(const FString& Email)
682682
return "Email cannot be empty";
683683
}
684684

685-
// Basic email validation
686685
int32 AtIndex;
687686

688687
if (!Email.FindChar('@', AtIndex) || AtIndex == 0)
689688
{
690-
return TEXT("Email is invalid");
689+
return TEXT("Email is invalid, given " + Email);
691690
}
692691

693692
if (!Email.FindChar('.', AtIndex) || AtIndex == 0)
694693
{
695-
return TEXT("Email is invalid");
694+
return TEXT("Email is invalid, given " + Email);
696695
}
697696

698697

0 commit comments

Comments
 (0)