Remove asm flavour.

This commit is contained in:
chriseth
2020-01-14 17:16:09 +01:00
parent 8865ec76dc
commit 123ea0a250
31 changed files with 173 additions and 126 deletions
+4 -4
View File
@@ -224,8 +224,8 @@ BOOST_AUTO_TEST_CASE(vardecl_multi_conflict)
BOOST_AUTO_TEST_CASE(vardecl_bool)
{
CHECK_PARSE_ERROR("{ let x := true }", ParserError, "True and false are not valid literals.");
CHECK_PARSE_ERROR("{ let x := false }", ParserError, "True and false are not valid literals.");
successParse("{ let x := true }");
successParse("{ let x := false }");
}
BOOST_AUTO_TEST_CASE(vardecl_empty)
@@ -313,7 +313,7 @@ BOOST_AUTO_TEST_CASE(switch_duplicate_case)
BOOST_AUTO_TEST_CASE(switch_invalid_expression)
{
CHECK_PARSE_ERROR("{ switch {} default {} }", ParserError, "Literal, identifier or instruction expected.");
CHECK_PARSE_ERROR("{ switch {} default {} }", ParserError, "Literal or identifier expected.");
CHECK_PARSE_ERROR("{ switch mload default {} }", ParserError, "Expected '(' but got reserved keyword 'default'");
CHECK_PARSE_ERROR("{ switch mstore(1, 1) default {} }", TypeError, "Expected expression to return one item to the stack, but did return 0 items");
}
@@ -346,7 +346,7 @@ BOOST_AUTO_TEST_CASE(for_statement)
BOOST_AUTO_TEST_CASE(for_invalid_expression)
{
CHECK_PARSE_ERROR("{ for {} {} {} {} }", ParserError, "Literal, identifier or instruction expected.");
CHECK_PARSE_ERROR("{ for {} {} {} {} }", ParserError, "Literal or identifier expected.");
CHECK_PARSE_ERROR("{ for 1 1 {} {} }", ParserError, "Expected '{' but got 'Number'");
CHECK_PARSE_ERROR("{ for {} 1 1 {} }", ParserError, "Expected '{' but got 'Number'");
CHECK_PARSE_ERROR("{ for {} 1 {} 1 }", ParserError, "Expected '{' but got 'Number'");
@@ -8,4 +8,4 @@ contract C {
}
}
// ----
// ParserError: (101-102): Literal, identifier or instruction expected.
// ParserError: (101-102): Literal or identifier expected.
@@ -8,4 +8,4 @@ contract C {
}
}
// ----
// ParserError: (103-104): Literal, identifier or instruction expected.
// ParserError: (103-104): Literal or identifier expected.
@@ -7,4 +7,4 @@ contract C {
}
}
// ----
// ParserError: (96-97): Literal, identifier or instruction expected.
// ParserError: (96-97): Literal or identifier expected.
@@ -6,4 +6,4 @@ contract C {
}
}
// ----
// ParserError: (72-73): Literal, identifier or instruction expected.
// ParserError: (72-73): Literal or identifier expected.
@@ -7,4 +7,4 @@ contract C {
}
}
// ----
// ParserError: (87-89): Literal, identifier or instruction expected.
// ParserError: (87-89): Literal or identifier expected.
@@ -6,4 +6,4 @@ contract C {
}
}
// ----
// ParserError: (69-70): Literal, identifier or instruction expected.
// ParserError: (71-72): Expected identifier but got '='
@@ -7,4 +7,4 @@ contract C {
}
}
// ----
// ParserError: (107-108): Literal, identifier or instruction expected.
// ParserError: (109-110): Expected identifier but got '='