﻿module Rezoom.SQL.Test.TestParserErrors
open System
open NUnit.Framework
open FsUnit
open Rezoom.SQL
open Rezoom.SQL.Mapping

[<Test>]
let ``invalid CTE`` () =
    expectError "SQ000: Expecting: whitespace, ')', '--' or '/*'"
        """
            with cte ( as
            select * from Users u
            )
            select * from cte
        """
﻿module Rezoom.SQL.Test.TestParserErrors
open System
open NUnit.Framework
open FsUnit
open Rezoom.SQL
open Rezoom.SQL.Mapping

[<Test>]
let ``invalid CTE`` () =
    expectError "SQ000: Expecting: whitespace, ')', '--' or '/*'"
        """
            with cte ( as
            select * from Users u
            )
            select * from cte
        """

[<Test>]
let ``small input`` () =
    expectError "SQ000: Expecting: end of input, whitespace, '--' or '/*'" "s"
Add test for very small inputs.
Add test for very small inputs.
