Fixed unit test
parent
22fa6d3f70
commit
ab08cb65b0
|
@ -33,12 +33,13 @@ TEST( Method, Constructor ) {
|
||||||
// addOverload
|
// addOverload
|
||||||
TEST( Method, addOverload ) {
|
TEST( Method, addOverload ) {
|
||||||
Method method;
|
Method method;
|
||||||
method.initializeOrCheck("myName");
|
|
||||||
bool is_const = true;
|
|
||||||
ArgumentList args;
|
ArgumentList args;
|
||||||
const ReturnValue retVal(ReturnType("return_type"));
|
bool is_const = true;
|
||||||
method.addOverload("myName", args, retVal, is_const);
|
const ReturnValue retVal1(ReturnType("return_type1"));
|
||||||
EXPECT_LONGS_EQUAL(1, method.nrOverloads());
|
method.addOverload("myName", args, retVal1, is_const);
|
||||||
|
const ReturnValue retVal2(ReturnType("return_type2"));
|
||||||
|
method.addOverload("myName", args, retVal2, is_const);
|
||||||
|
EXPECT_LONGS_EQUAL(2, method.nrOverloads());
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
|
|
Loading…
Reference in New Issue