1import cpp11_alternate_function_syntax 2 3a = cpp11_alternate_function_syntax.SomeStruct() 4 5res = a.addNormal(4, 5) 6if res != 9: 7 raise RuntimeError, ("SomeStruct::addNormal(4,5) returns ", res, " should be 9.") 8 9res = a.addAlternate(4, 5) 10if res != 9: 11 raise RuntimeError, ("SomeStruct::addAlternate(4,5) returns ", res, " should be 9.") 12 13res = a.addAlternateConst(4, 5) 14if res != 9: 15 raise RuntimeError, ("SomeStruct::addAlternateConst(4,5) returns ", res, " should be 9.") 16 17res = a.addAlternateNoExcept(4, 5) 18if res != 9: 19 raise RuntimeError, ("SomeStruct::addAlternateNoExcept(4,5) returns ", res, " should be 9.") 20 21res = a.addAlternateConstNoExcept(4, 5) 22if res != 9: 23 raise RuntimeError, ("SomeStruct::addAlternateConstNoExcept(4,5) returns ", res, " should be 9.") 24