aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-05-27 03:42:17 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-05-27 03:42:17 +0800
commitefadf7e41f73b83f3a7793562cc26f3e92b0211d (patch)
treedf5f4dc77ac6887c8d18e23bf213f236b1215cf8 /test
parent8fe79fe706fd64146ffbf345e0241b7c4357ce43 (diff)
downloaddexon-solidity-efadf7e41f73b83f3a7793562cc26f3e92b0211d.tar.gz
dexon-solidity-efadf7e41f73b83f3a7793562cc26f3e92b0211d.tar.zst
dexon-solidity-efadf7e41f73b83f3a7793562cc26f3e92b0211d.zip
Change error message for invalid type
Diffstat (limited to 'test')
-rw-r--r--test/libjulia/Parser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/libjulia/Parser.cpp b/test/libjulia/Parser.cpp
index c35c9e46..b82c446a 100644
--- a/test/libjulia/Parser.cpp
+++ b/test/libjulia/Parser.cpp
@@ -200,10 +200,10 @@ BOOST_AUTO_TEST_CASE(invalid_types)
{
/// testing invalid literal
/// NOTE: these will need to change when types are compared
- CHECK_ERROR("{ let x:bool := 1:invalid }", TypeError, "User defined types (\"invalid\") are not supported yet.");
+ CHECK_ERROR("{ let x:bool := 1:invalid }", TypeError, "\"invalid\" is not a valid type (user defined types are not yet supported).");
/// testing invalid variable declaration
- CHECK_ERROR("{ let x:invalid := 1:bool }", TypeError, "User defined types (\"invalid\") are not supported yet.");
- CHECK_ERROR("{ function f(a:invalid) {} }", TypeError, "User defined types (\"invalid\") are not supported yet.");
+ CHECK_ERROR("{ let x:invalid := 1:bool }", TypeError, "\"invalid\" is not a valid type (user defined types are not yet supported).");
+ CHECK_ERROR("{ function f(a:invalid) {} }", TypeError, "\"invalid\" is not a valid type (user defined types are not yet supported).");
}
BOOST_AUTO_TEST_CASE(builtin_types)