test-auto-ensure-no-unused-opts.cpp 624 B

12345678910111213141516171819202122
  1. #include "testlib.h"
  2. using namespace std;
  3. int main(int argc, char** argv) {
  4. registerGen(argc, argv, 1);
  5. int test_count = opt<int>("test-count");
  6. int sum_n = opt<int>("sum-n");
  7. int min_n = opt<int>("min-n", 1);
  8. int min_value = opt<int>("min-value", 1);
  9. int max_value = opt<int>("max-value", 1000 * 1000 * 1000);
  10. int value_bias = opt<int>("value-bias", 0);
  11. println("test-count =", test_count);
  12. println("sum-n =", sum_n);
  13. println("min-n =", min_n);
  14. println("min-value =", min_value);
  15. println("max-value =", max_value);
  16. println("value-bias =", value_bias);
  17. }