Skip to content

Commit

Permalink
Allow weird names
Browse files Browse the repository at this point in the history
  • Loading branch information
nixonwidjaja committed Oct 1, 2023
1 parent 541a63a commit 313e6d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/java/seedu/address/model/person/NameTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ public void isValidName() {
assertTrue(Name.isValidName("^"));
assertTrue(Name.isValidName("peter*"));
assertTrue(Name.isValidName("Muhammad s/o Ali"));
assertTrue(Name.isValidName("X AE A-12"));
assertTrue(Name.isValidName("Exa Dark Sideræl"));
assertTrue(Name.isValidName("$helly"));
assertTrue(Name.isValidName("Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch"));
assertTrue(Name.isValidName("peter jack")); // alphabets only
assertTrue(Name.isValidName("12345")); // numbers only
assertTrue(Name.isValidName("peter the 2nd")); // alphanumeric characters
Expand Down

0 comments on commit 313e6d8

Please sign in to comment.