sval.cpp 445 B

1234567891011121314151617
  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. registerValidation(argc, argv);
  10. inf.readToken("[a-z]{1,100}", "s");
  11. inf.readEoln();
  12. inf.readEof();
  13. }