Skip to content

Commit 971d7cf

Browse files
committed
Add equalTest(..., size_t, int) overload
1 parent 51fe086 commit 971d7cf

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

tests/cli/clitest.cpp

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,17 @@ static void equalTest(
101101
s_errors += 1;
102102
}
103103

104+
//===========================================================================
105+
static void equalTest(
106+
int line,
107+
const char msgA[],
108+
const char msgB[],
109+
size_t a,
110+
int b
111+
) {
112+
equalTest(line, msgA, msgB, a, (size_t) b);
113+
}
114+
104115
//===========================================================================
105116
static void parseTest(
106117
int line,
@@ -779,7 +790,7 @@ Usage: test [OPTIONS] [STREETLIGHTS...]
779790
--help Show this message and exit.
780791
)");
781792
EXPECT_PARSE(cli, "red");
782-
EXPECT_EQUAL(state2.size(), 1u);
793+
EXPECT_EQUAL(state2.size(), 1);
783794
EXPECT_EQUAL(state2[0], State::stop);
784795
EXPECT_PARSE(cli, "white", false);
785796
EXPECT_ERR(cli, 1 + R"(

0 commit comments

Comments
 (0)