From 313e6d86871d20fb028af94a032ce2043a9573e8 Mon Sep 17 00:00:00 2001 From: nixonwidjaja Date: Mon, 2 Oct 2023 01:12:09 +0800 Subject: [PATCH] Allow weird names --- src/test/java/seedu/address/model/person/NameTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/java/seedu/address/model/person/NameTest.java b/src/test/java/seedu/address/model/person/NameTest.java index dd8559dea68..d4b51737a0e 100644 --- a/src/test/java/seedu/address/model/person/NameTest.java +++ b/src/test/java/seedu/address/model/person/NameTest.java @@ -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