■ A thought that occurred to me while designing
When testing web or app systems, I think everyone encounters a screen where they have to enter so-called "personal information" at least once.
For names, there are specifications for character types and character counts, or if the surname and given name text boxes are separate, there might be a requirement like "total of X characters combined."
That said, I think it's also a field where you can create any name you want as long as it's not extremely strange.
You can use a name like "Ai Ueo," which sounds like something out of a manga, or fill it with characters up to the maximum limit like "aiueokakikukekosashisuseso..." as long as it follows the character type and count specified in the test case.
For addresses, even if you can't go beyond the part displayed by an address search, the subsequent house number, apartment, or building name are parts you can make up yourself.
However, when I was thinking about the validation for mobile numbers, which seem just as easy to make up, I got stuck wondering, "How do you validate area codes?" so I decided to write about that.
■ A bit of trivia about area codes I learned for the first time?!
In most cases, the specifications for phone number text boxes only define the character type (half-width numbers, or full-width numbers if the system converts them to half-width) and the character count.
However, you might think it's enough to just enter numbers like "123-4567-8901," but it's possible that the input for the area code is also specified.
Furthermore, since the first digit is always fixed to "0" for both landlines and mobile phones, there might be a specification that the first digit must be "0".
I happened to learn this by Googling it, but the fact that the area code starts with "0" is a signal indicating a domestic call.
Also, in the case of mobile numbers, the area code is fixed to "070/080/090," and since it seems easy to specify during programming, there is a possibility that entering any other number will result in an error.
Especially if the text boxes are separated into area code, exchange number, and subscriber number, you might need to check the specifications for the area code.
Note that while mobile area codes are currently "070/080/090," it has been announced that the "060" area code will be opened up eventually, although the timing hasn't been decided yet. So, if the input for mobile area codes is restricted to only "070/080/090," it might be worth asking how to handle it when "060" is opened.
■ Either way, let's ask the developers
If these details are not in the specification document, it might be a good idea to ask the developers.
I happened to learn about this while Googling various things because I was working on a mobile number field where the text boxes were split into parts.
That said, landline numbers also start with "0" for the area code, and even if you put it all in one text box, you can't rule out the possibility of unwritten specifications like "the first digit must be 0" or "the first digits must be 070/080/090."
Either way, I felt it would be better to ask the developers to confirm and align our understanding.