From 87ad337ae0c055c21476ef9961e52a9d7d3072bb Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Tue, 3 Apr 2018 14:41:53 +0200 Subject: Adds parsing sub-directory in syntaxTests and moves two example tests from SolidityParser.cpp to test contracts. --- .../syntaxTests/parsing/missing_variable_name_in_declaration.sol | 5 +++++ test/libsolidity/syntaxTests/parsing/smoke_test.sol | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 test/libsolidity/syntaxTests/parsing/missing_variable_name_in_declaration.sol create mode 100644 test/libsolidity/syntaxTests/parsing/smoke_test.sol (limited to 'test/libsolidity/syntaxTests') diff --git a/test/libsolidity/syntaxTests/parsing/missing_variable_name_in_declaration.sol b/test/libsolidity/syntaxTests/parsing/missing_variable_name_in_declaration.sol new file mode 100644 index 00000000..c03fd97d --- /dev/null +++ b/test/libsolidity/syntaxTests/parsing/missing_variable_name_in_declaration.sol @@ -0,0 +1,5 @@ +contract test { + uint256 ; +} +// ---- +// ParserError: Expected identifier, got 'Semicolon' diff --git a/test/libsolidity/syntaxTests/parsing/smoke_test.sol b/test/libsolidity/syntaxTests/parsing/smoke_test.sol new file mode 100644 index 00000000..d328b167 --- /dev/null +++ b/test/libsolidity/syntaxTests/parsing/smoke_test.sol @@ -0,0 +1,4 @@ +contract test { + uint256 stateVariable1; +} +// ---- -- cgit