enumminmax_unittests.c 336 B

12345678910111213141516
  1. #include "unittests.h"
  2. #include "enumminmax.pb.h"
  3. int main()
  4. {
  5. int status = 0;
  6. COMMENT("Verify min/max on unsorted enum");
  7. {
  8. TEST(_Language_MIN == Language_UNKNOWN);
  9. TEST(_Language_MAX == Language_SPANISH_ES_MX);
  10. TEST(_Language_ARRAYSIZE == (Language_SPANISH_ES_MX+1));
  11. }
  12. return status;
  13. }