diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-06-03 22:14:23 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-06-04 17:48:09 +0800 |
commit | c7e6bbb82c7ad989df59906e8287db852012bbb9 (patch) | |
tree | 7c1158c6d00ab2e9ce3899e8e7c9e126fdaa05bf /libsolidity/SolidityEndToEndTest.cpp | |
parent | 5ef445f64f0e7854dcf9ac89b7867570bbbbbe69 (diff) | |
download | dexon-solidity-c7e6bbb82c7ad989df59906e8287db852012bbb9.tar.gz dexon-solidity-c7e6bbb82c7ad989df59906e8287db852012bbb9.tar.zst dexon-solidity-c7e6bbb82c7ad989df59906e8287db852012bbb9.zip |
- conversion of positive literals to signed int
- tests
Diffstat (limited to 'libsolidity/SolidityEndToEndTest.cpp')
-rw-r--r-- | libsolidity/SolidityEndToEndTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libsolidity/SolidityEndToEndTest.cpp b/libsolidity/SolidityEndToEndTest.cpp index e7287b39..1d0f1fc2 100644 --- a/libsolidity/SolidityEndToEndTest.cpp +++ b/libsolidity/SolidityEndToEndTest.cpp @@ -4177,10 +4177,14 @@ BOOST_AUTO_TEST_CASE(positive_integers_to_signed) char const* sourceCode = R"( contract test { int8 public x = 2; + int8 public y = 127; + int16 public q = 250; } )"; compileAndRun(sourceCode, 0, "test"); BOOST_CHECK(callContractFunction("x()") == encodeArgs(2)); + BOOST_CHECK(callContractFunction("y()") == encodeArgs(127)); + BOOST_CHECK(callContractFunction("q()") == encodeArgs(250)); } BOOST_AUTO_TEST_SUITE_END() |