aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorwadeAlexC <wade.alex.c@gmail.com>2017-10-03 05:59:39 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-10-04 05:01:58 +0800
commit73f17876e9a424f9519e3c4b4364139aaae7a62a (patch)
tree1880edd1aeb2108814773c6ca56333c988293e0b /test
parentcfc4e5dde30daf63fdc78faa0e863965e167aff9 (diff)
downloaddexon-solidity-73f17876e9a424f9519e3c4b4364139aaae7a62a.tar.gz
dexon-solidity-73f17876e9a424f9519e3c4b4364139aaae7a62a.tar.zst
dexon-solidity-73f17876e9a424f9519e3c4b4364139aaae7a62a.zip
Better error message when using fractional number as array size expressions
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/SolidityNameAndTypeResolution.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp
index c60ccaf8..ed223678 100644
--- a/test/libsolidity/SolidityNameAndTypeResolution.cpp
+++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp
@@ -4354,7 +4354,7 @@ BOOST_AUTO_TEST_CASE(invalid_array_declaration_with_rational)
}
}
)";
- CHECK_ERROR(text, TypeError, "Invalid array length, expected integer literal");
+ CHECK_ERROR(text, TypeError, "Array with fractional length specified.");
}
BOOST_AUTO_TEST_CASE(invalid_array_declaration_with_signed_fixed_type)
@@ -4366,7 +4366,7 @@ BOOST_AUTO_TEST_CASE(invalid_array_declaration_with_signed_fixed_type)
}
}
)";
- CHECK_ERROR(text, TypeError, "Invalid array length, expected integer literal");
+ CHECK_ERROR(text, TypeError, "Invalid array length, expected integer literal.");
}
BOOST_AUTO_TEST_CASE(invalid_array_declaration_with_unsigned_fixed_type)
@@ -4378,7 +4378,7 @@ BOOST_AUTO_TEST_CASE(invalid_array_declaration_with_unsigned_fixed_type)
}
}
)";
- CHECK_ERROR(text, TypeError, "Invalid array length, expected integer literal");
+ CHECK_ERROR(text, TypeError, "Invalid array length, expected integer literal.");
}
BOOST_AUTO_TEST_CASE(rational_to_bytes_implicit_conversion)