Skip to content

Commit

Permalink
[strings-testframework] Add invalid JID "@example.org"
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowdalic committed Jan 18, 2024
1 parent 60c1842 commit 55a98af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ invalid jid:
jul[email protected]
SOH character (U+0001) in localpart

invalid jid:
@example.com
Localpart is empty string
RFC 7622 § 3.1 specifies that all parts must have a length
between 1 to 1023 octets, making the empty string invalid as part.

RFC 7622 Table 2
================
Simplified BSD License
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
public class StringsTestframeworkTest {

private static final int VALID_JID_CORPUS_SIZE = 22;
private static final int INVALID_JID_CORPUS_SIZE = 23;
private static final int INVALID_JID_CORPUS_SIZE = 24;

@Test
public void testStringsTestframeworkIsSuccessful() {
Expand Down

0 comments on commit 55a98af

Please sign in to comment.