aboutsummaryrefslogtreecommitdiffstats
path: root/SolidityEndToEndTest.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-03-26 19:22:49 +0800
committerLiana Husikyan <liana@ethdev.com>2015-04-08 21:56:35 +0800
commit32ae2ea75c2eaf6a4bfa1d28f5e8c7c8c9ca5746 (patch)
tree9c63b35b3d4679257637560a7629af8d3950ad98 /SolidityEndToEndTest.cpp
parentfff3784c010925a543f6bc7df803f7a107f3964b (diff)
downloaddexon-solidity-32ae2ea75c2eaf6a4bfa1d28f5e8c7c8c9ca5746.tar
dexon-solidity-32ae2ea75c2eaf6a4bfa1d28f5e8c7c8c9ca5746.tar.gz
dexon-solidity-32ae2ea75c2eaf6a4bfa1d28f5e8c7c8c9ca5746.tar.bz2
dexon-solidity-32ae2ea75c2eaf6a4bfa1d28f5e8c7c8c9ca5746.tar.lz
dexon-solidity-32ae2ea75c2eaf6a4bfa1d28f5e8c7c8c9ca5746.tar.xz
dexon-solidity-32ae2ea75c2eaf6a4bfa1d28f5e8c7c8c9ca5746.tar.zst
dexon-solidity-32ae2ea75c2eaf6a4bfa1d28f5e8c7c8c9ca5746.zip
added createing FunctionType from ArrayType VariableDeclaration
added test
Diffstat (limited to 'SolidityEndToEndTest.cpp')
-rw-r--r--SolidityEndToEndTest.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/SolidityEndToEndTest.cpp b/SolidityEndToEndTest.cpp
index b169263d..3c4c2bc0 100644
--- a/SolidityEndToEndTest.cpp
+++ b/SolidityEndToEndTest.cpp
@@ -966,6 +966,19 @@ BOOST_AUTO_TEST_CASE(simple_accessor)
BOOST_CHECK(callContractFunction("data()") == encodeArgs(8));
}
+BOOST_AUTO_TEST_CASE(array_accessor)
+{
+ char const* sourceCode = R"(
+ contract test {
+ uint[8] datas;
+ function test() {
+ datas[2] = 8;
+ }
+ })";
+ compileAndRun(sourceCode);
+ BOOST_CHECK(callContractFunction("data(2)") == encodeArgs(8));
+}
+
BOOST_AUTO_TEST_CASE(multiple_elementary_accessors)
{
char const* sourceCode = "contract test {\n"