From ab08cb65b00518aa3d12a7411c9df457c55a8b31 Mon Sep 17 00:00:00 2001 From: dellaert Date: Sat, 22 Nov 2014 22:13:21 +0100 Subject: [PATCH] Fixed unit test --- wrap/tests/testMethod.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/wrap/tests/testMethod.cpp b/wrap/tests/testMethod.cpp index 8050f0d3c..5861bab4a 100644 --- a/wrap/tests/testMethod.cpp +++ b/wrap/tests/testMethod.cpp @@ -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()); } /* ************************************************************************* */