diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-06-02 04:00:27 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-06-04 17:48:09 +0800 |
commit | 5ef445f64f0e7854dcf9ac89b7867570bbbbbe69 (patch) | |
tree | c940d71a5a63c8c66da5ed7f916fe41157335976 | |
parent | 2f88fd6f5874a1f15135d443b5f05699ae971f18 (diff) | |
download | dexon-solidity-5ef445f64f0e7854dcf9ac89b7867570bbbbbe69.tar.gz dexon-solidity-5ef445f64f0e7854dcf9ac89b7867570bbbbbe69.tar.zst dexon-solidity-5ef445f64f0e7854dcf9ac89b7867570bbbbbe69.zip |
test
Conflicts:
test/libsolidity/SolidityEndToEndTest.cpp
-rw-r--r-- | libsolidity/SolidityEndToEndTest.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libsolidity/SolidityEndToEndTest.cpp b/libsolidity/SolidityEndToEndTest.cpp index 9f6f27d7..e7287b39 100644 --- a/libsolidity/SolidityEndToEndTest.cpp +++ b/libsolidity/SolidityEndToEndTest.cpp @@ -4172,6 +4172,17 @@ BOOST_AUTO_TEST_CASE(evm_exceptions_in_constructor_out_of_baund) BOOST_CHECK(compileAndRunWthoutCheck(sourceCode, 0, "A").empty()); } +BOOST_AUTO_TEST_CASE(positive_integers_to_signed) +{ + char const* sourceCode = R"( + contract test { + int8 public x = 2; + } + )"; + compileAndRun(sourceCode, 0, "test"); + BOOST_CHECK(callContractFunction("x()") == encodeArgs(2)); +} + BOOST_AUTO_TEST_SUITE_END() } |