2020-12-20 16:03:15 +01:00
|
|
|
> module Language.SQL.SimpleSQL.EmptyStatement where
|
|
|
|
>
|
|
|
|
> import Language.SQL.SimpleSQL.Syntax
|
|
|
|
> import Language.SQL.SimpleSQL.TestTypes
|
|
|
|
>
|
|
|
|
> emptyStatementTests :: TestItem
|
|
|
|
> emptyStatementTests = Group "empty statement"
|
|
|
|
> [ TestStatement ansi2011 ";" EmptyStatement
|
|
|
|
> , TestStatements ansi2011 ";" [EmptyStatement]
|
|
|
|
> , TestStatements ansi2011 ";;" [EmptyStatement, EmptyStatement]
|
|
|
|
> , TestStatements ansi2011 ";;;" [EmptyStatement, EmptyStatement, EmptyStatement]
|
|
|
|
> , TestStatement ansi2011 "/* comment */ ;" EmptyStatement
|
2021-10-19 17:14:05 +02:00
|
|
|
> , TestStatements ansi2011 "" []
|
|
|
|
> , TestStatements ansi2011 "/* comment */" []
|
2020-12-20 16:03:15 +01:00
|
|
|
> , TestStatements ansi2011 "/* comment */ ;" [EmptyStatement]
|
|
|
|
> , TestStatements ansi2011 "/* comment */ ; /* comment */ ;"
|
|
|
|
> [EmptyStatement, EmptyStatement]
|
|
|
|
> , TestStatements ansi2011 "/* comment */ ; /* comment */ ; /* comment */ ;"
|
|
|
|
> [EmptyStatement, EmptyStatement, EmptyStatement]
|
|
|
|
> ]
|