diff options
author | chriseth <chris@ethereum.org> | 2016-11-09 18:29:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-09 18:29:41 +0800 |
commit | 81118de51273a5aef711b321f20ee02da9e55533 (patch) | |
tree | aff845ce40cebcba4b5ef297333870883e4541dc /test | |
parent | c82acfd3ebfcc5a79817be6a7c9684727fb407ac (diff) | |
parent | 63bde109a1dfa0e4726f9b479923db305aa25a2a (diff) | |
download | dexon-solidity-81118de51273a5aef711b321f20ee02da9e55533.tar dexon-solidity-81118de51273a5aef711b321f20ee02da9e55533.tar.gz dexon-solidity-81118de51273a5aef711b321f20ee02da9e55533.tar.bz2 dexon-solidity-81118de51273a5aef711b321f20ee02da9e55533.tar.lz dexon-solidity-81118de51273a5aef711b321f20ee02da9e55533.tar.xz dexon-solidity-81118de51273a5aef711b321f20ee02da9e55533.tar.zst dexon-solidity-81118de51273a5aef711b321f20ee02da9e55533.zip |
Merge pull request #1339 from ethereum/typo
test: fix a typo in calling_payable test
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index 640cc108..099c3c00 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -57,7 +57,7 @@ parseAnalyseAndReturnError(string const& _source, bool _reportWarnings = false, { sourceUnit = parser.parse(std::make_shared<Scanner>(CharStream(source))); if(!sourceUnit) - return make_pair(sourceUnit, nullptr); + BOOST_FAIL("Parsing failed in type checker test."); SyntaxChecker syntaxChecker(errors); if (!syntaxChecker.checkSyntax(*sourceUnit)) @@ -4015,8 +4015,8 @@ BOOST_AUTO_TEST_CASE(calling_payable) char const* text = R"( contract receiver { function pay() payable {} } contract test { - funciton f() { (new receiver()).pay.value(10)(); } - recevier r = new receiver(); + function f() { (new receiver()).pay.value(10)(); } + receiver r = new receiver(); function g() { r.pay.value(10)(); } } )"; |