Verification can be divided into two major parts of surface-level verification and business verification:
First, the surface is verified, also known as input verification, which can generally be divided into three categories:
1, lexical validation
2, syntactic validation
3, semantic validation
The lexical verification refers to whether the input is correct, such as a number value is an integer value.
Syntactic verification refers to whether a data is legal and the structure is reasonable. For example, our date is generally filled in, "MM / DD / YYYY", and the syntax verification is verified by verifying the number and is "mm / dd." / YYYY "is entered in the format, but whether this date is the legal date that does not belong to the sentence verification.
Semantic verification is the final reasonable judgment of the input value, such as "20040231", in line with 1, 2 verification, but is not reasonable. This wine is the role of semantic verification.