Fixed unit test

release/4.3a0
dellaert 2014-11-22 22:13:21 +01:00
parent 22fa6d3f70
commit ab08cb65b0
1 changed files with 6 additions and 5 deletions

View File

@ -33,12 +33,13 @@ TEST( Method, Constructor ) {
// addOverload
TEST( Method, addOverload ) {
Method method;
method.initializeOrCheck("myName");
bool is_const = true;
ArgumentList args;
const ReturnValue retVal(ReturnType("return_type"));
method.addOverload("myName", args, retVal, is_const);
EXPECT_LONGS_EQUAL(1, method.nrOverloads());
bool is_const = true;
const ReturnValue retVal1(ReturnType("return_type1"));
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());
}
/* ************************************************************************* */