Перейти к содержанию

Validation and test data

English

Check the data before you use it

  • Users make mistakes: a mark of 120, an empty name, a password that is too short.
  • Validation is a check the program makes automatically: is this value reasonable? It cannot tell whether the value is true, only whether it is allowed.
  • The syllabus (section 7) names six checks: range, length, type, presence, format and check digit.
  • Verification checks that data was entered as intended: double entry (type it twice and compare) or a visual check (read it back).

Войти или создать аккаунт

IGCSE, A-Level & AP