| 3 | #include <assert.h> |
| 4 | |
| 5 | static void testDefaultIntValue() |
| 6 | { |
| 7 | FlagGroup flags; |
| 8 | |
| 9 | IntFlag intFlag({"--intFlag"}, "a global integer flag", 1); |
| 10 | |
| 11 | intFlag.setDefaultValue(2); |
| 12 | const char* argv[] = {"prog", NULL}; |
| 13 | flags.parseFlags(1, argv); |
| 14 | assert(intFlag.get() == 2); |
| 15 | } |
| 16 | |
| 17 | static void testOverriddenIntValue() |
| 18 | { |
no test coverage detected