sval.cpp 435 B

1234567891011121314151617181920
  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()
  9. {
  10. registerValidation();
  11. inf.readToken("[a-z]{1,100}", "s");
  12. inf.readEoln();
  13. inf.readEof();
  14. return 0;
  15. }