diff options
author | Balajiganapathi S <balajiganapathi.s@gmail.com> | 2017-11-18 00:11:15 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-02-13 22:59:33 +0800 |
commit | b1417b318f3b3cbfd0bf79a4cabc656825a84e5a (patch) | |
tree | 3586f671841b6605b8b6cb7e41e6a96c931907da /test/libsolidity | |
parent | 2859834e58e37e7b15a15f7df60feef3e1527c97 (diff) | |
download | dexon-solidity-b1417b318f3b3cbfd0bf79a4cabc656825a84e5a.tar.gz dexon-solidity-b1417b318f3b3cbfd0bf79a4cabc656825a84e5a.tar.zst dexon-solidity-b1417b318f3b3cbfd0bf79a4cabc656825a84e5a.zip |
Move string distance function to utils and format error message
Diffstat (limited to 'test/libsolidity')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index 51d81a28..c4741657 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -2089,7 +2089,7 @@ BOOST_AUTO_TEST_CASE(similar_name_suggestions_expected) function g() public { fun(); } } )"; - CHECK_ERROR(sourceCode, DeclarationError, "Undeclared identifier. Did you mean func?"); + CHECK_ERROR(sourceCode, DeclarationError, "Undeclared identifier. Did you mean \"func\"?"); } BOOST_AUTO_TEST_CASE(no_name_suggestion) @@ -2115,7 +2115,7 @@ BOOST_AUTO_TEST_CASE(multiple_similar_suggestions) } } )"; - CHECK_ERROR(sourceCode, DeclarationError, "Undeclared identifier. Did you mean var1, var2, var3, var4 or var5?"); + CHECK_ERROR(sourceCode, DeclarationError, "Undeclared identifier. Did you mean \"var1\", \"var2\", \"var3\", \"var4\" or \"var5\"?"); } BOOST_AUTO_TEST_CASE(multiple_scopes_suggestions) @@ -2129,7 +2129,7 @@ BOOST_AUTO_TEST_CASE(multiple_scopes_suggestions) } } )"; - CHECK_ERROR(sourceCode, DeclarationError, "Undeclared identifier. Did you mean log8, log9, log0, log1, log2, log3 or log4?"); + CHECK_ERROR(sourceCode, DeclarationError, "Undeclared identifier. Did you mean \"log8\", \"log9\", \"log0\", \"log1\", \"log2\", \"log3\" or \"log4\"?"); } BOOST_AUTO_TEST_CASE(inheritence_suggestions) @@ -2142,7 +2142,7 @@ BOOST_AUTO_TEST_CASE(inheritence_suggestions) } } )"; - CHECK_ERROR(sourceCode, DeclarationError, "Undeclared identifier. Did you mean func?"); + CHECK_ERROR(sourceCode, DeclarationError, "Undeclared identifier. Did you mean \"func\"?"); } BOOST_AUTO_TEST_CASE(no_spurious_suggestions) |