aboutsummaryrefslogtreecommitdiffstats
path: root/SolidityNameAndTypeResolution.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-01-26 16:48:29 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-01-29 04:46:16 +0800
commitcc906541f61ce6d90797338848fe2870da42a490 (patch)
tree7dd2be400e6a01d99962fe6c33c37bf70f9f73f5 /SolidityNameAndTypeResolution.cpp
parent1aa77295e563472724c886df6c92c6646b2e4a45 (diff)
downloaddexon-solidity-cc906541f61ce6d90797338848fe2870da42a490.tar.gz
dexon-solidity-cc906541f61ce6d90797338848fe2870da42a490.tar.zst
dexon-solidity-cc906541f61ce6d90797338848fe2870da42a490.zip
Various small fixes for Sol Automatic Accessors
Diffstat (limited to 'SolidityNameAndTypeResolution.cpp')
-rw-r--r--SolidityNameAndTypeResolution.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/SolidityNameAndTypeResolution.cpp b/SolidityNameAndTypeResolution.cpp
index dbb95cf7..3b711bfe 100644
--- a/SolidityNameAndTypeResolution.cpp
+++ b/SolidityNameAndTypeResolution.cpp
@@ -645,9 +645,9 @@ BOOST_AUTO_TEST_CASE(state_variable_accessors)
BOOST_CHECK((contract = retrieveContract(source, 0)) != nullptr);
FunctionDescription function = retrieveFunctionBySignature(contract, "foo()");
BOOST_CHECK_MESSAGE(function.getDeclaration() != nullptr, "Could not find the accessor function");
- // vector<ParamDescription> const expected({ParamDescription("", "uint256")});
- // BOOST_CHECK_EQUAL_COLLECTIONS(function.getReturnParameters().begin(), function.getReturnParameters().end(),
- // expected.begin(), expected.end());
+ auto returnParams = function.getReturnParameters();
+ BOOST_CHECK_EQUAL(returnParams.at(0).getType(), "uint256");
+ BOOST_CHECK(function.isConstant());
}
BOOST_AUTO_TEST_CASE(private_state_variable)