Commit c4d0fc1a0754522fdd5d09c5aced429413d37dbd
1 parent
dbe03bea
Testing short vect too
Showing
1 changed file
with
6 additions
and
0 deletions
tests/AppTest.cpp
| @@ -487,6 +487,12 @@ TEST_F(TApp, VectorUnlimString) { | @@ -487,6 +487,12 @@ TEST_F(TApp, VectorUnlimString) { | ||
| 487 | run(); | 487 | run(); |
| 488 | EXPECT_EQ(3, app.count("--string")); | 488 | EXPECT_EQ(3, app.count("--string")); |
| 489 | EXPECT_EQ(answer, strvec); | 489 | EXPECT_EQ(answer, strvec); |
| 490 | + | ||
| 491 | + app.reset(); | ||
| 492 | + args = {"-s", "mystring", "mystring2", "mystring3"}; | ||
| 493 | + run(); | ||
| 494 | + EXPECT_EQ(3, app.count("--string")); | ||
| 495 | + EXPECT_EQ(answer, strvec); | ||
| 490 | } | 496 | } |
| 491 | 497 | ||
| 492 | 498 |