From 1ce5cc3928f917107ed83d2d26dcdc6461435e71 Mon Sep 17 00:00:00 2001 From: Christian De la Hoz Date: Wed, 1 Sep 2021 17:35:52 +0200 Subject: [PATCH] remove useless tests - we dont test the parser for 'wrong' results --- corpus/create_function/errors.txt | 78 ------------------------------- 1 file changed, 78 deletions(-) delete mode 100644 corpus/create_function/errors.txt diff --git a/corpus/create_function/errors.txt b/corpus/create_function/errors.txt deleted file mode 100644 index 47e8346..0000000 --- a/corpus/create_function/errors.txt +++ /dev/null @@ -1,78 +0,0 @@ -================================================================================ -wrong - trailing comma (1) -================================================================================ -CREATE FUNCTION FOO (foo bar,) RETURNS void AS 'select' LANGUAGE sql; --------------------------------------------------------------------------------- - -(source_file - (create_function_statement - (function_signature - (identifier) - (function_parameters - (var_declaration - (identifier) - (identifier)) - (ERROR))) - (function_return - (identifier)) - (string) - (identifier))) - -================================================================================ -wrong - trailing comma (2) -================================================================================ -CREATE FUNCTION FOO (foo bar, foo bar,) RETURNS void AS 'select' LANGUAGE sql; --------------------------------------------------------------------------------- - -(source_file - (create_function_statement - (function_signature - (identifier) - (function_parameters - (var_declaration - (identifier) - (identifier)) - (var_declaration - (identifier) - (identifier)) - (ERROR))) - (function_return - (identifier)) - (string) - (identifier))) - -================================================================================ -wrong - missing type -================================================================================ -CREATE FUNCTION FOO (foo,) RETURNS void AS 'select' LANGUAGE sql; --------------------------------------------------------------------------------- - -(source_file - (create_function_statement - (function_signature - (identifier) - (function_parameters - (ERROR - (identifier)))) - (function_return - (identifier)) - (string) - (identifier))) - -================================================================================ -wrong - many volatilities -================================================================================ -CREATE FUNCTION FOO () RETURNS void AS 'select' LANGUAGE sql STABLE VOLATILE; --------------------------------------------------------------------------------- - -(source_file - (create_function_statement - (function_signature - (identifier) - (function_parameters)) - (function_return - (identifier)) - (string) - (identifier) - (function_volatility)) - (ERROR))