diff options
author | Erik Kundt <bitshift@posteo.org> | 2018-06-29 22:52:41 +0800 |
---|---|---|
committer | Erik Kundt <bitshift@posteo.org> | 2018-07-04 21:45:42 +0800 |
commit | fc2b006fe1266339776820ee0dd2c756bc9766d5 (patch) | |
tree | a24e5be1f1d7dca6e55dc8fd12ea204b318f623f /test/libsolidity/ASTJSON.cpp | |
parent | b42929975f7ac9729f795c416f922613c8ce3994 (diff) | |
download | dexon-solidity-fc2b006fe1266339776820ee0dd2c756bc9766d5.tar.gz dexon-solidity-fc2b006fe1266339776820ee0dd2c756bc9766d5.tar.zst dexon-solidity-fc2b006fe1266339776820ee0dd2c756bc9766d5.zip |
Updates unit test to specify visibility.
Diffstat (limited to 'test/libsolidity/ASTJSON.cpp')
-rw-r--r-- | test/libsolidity/ASTJSON.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/ASTJSON.cpp b/test/libsolidity/ASTJSON.cpp index 5d5b14e8..03e74097 100644 --- a/test/libsolidity/ASTJSON.cpp +++ b/test/libsolidity/ASTJSON.cpp @@ -44,7 +44,7 @@ BOOST_AUTO_TEST_SUITE(SolidityASTJSON) BOOST_AUTO_TEST_CASE(short_type_name) { CompilerStack c; - c.addSource("a", "contract c { function f() { uint[] memory x; } }"); + c.addSource("a", "contract c { function f() public { uint[] memory x; } }"); c.setEVMVersion(dev::test::Options::get().evmVersion()); c.parseAndAnalyze(); map<string, unsigned> sourceIndices; @@ -59,7 +59,7 @@ BOOST_AUTO_TEST_CASE(short_type_name) BOOST_AUTO_TEST_CASE(short_type_name_ref) { CompilerStack c; - c.addSource("a", "contract c { function f() { uint[][] memory rows; } }"); + c.addSource("a", "contract c { function f() public { uint[][] memory rows; } }"); c.setEVMVersion(dev::test::Options::get().evmVersion()); c.parseAndAnalyze(); map<string, unsigned> sourceIndices; |