sval.cpp 450 B

123456789101112131415161718
  1. /**
  2. * Validates that the input contains the only token token.
  3. * This token can contain only lowercase latin letters a-z. The length should be between 1 and 100, inclusive.
  4. * Also validates that file ends with EOLN and EOF.
  5. */
  6. #include "testlib.h"
  7. using namespace std;
  8. int main(int argc, char* argv[])
  9. {
  10. registerValidation(argc, argv);
  11. inf.readToken("[a-z]{1,100}", "s");
  12. inf.readEoln();
  13. inf.readEof();
  14. }