@@ -0,0 +1,21 @@
1+{-# LANGUAGE OverloadedStrings #-}
3+module LiteralRuleTest where
5+import Data.Text (Text)
7+-- This should produce 8 firings of the "TEXT literal" rule
9+strings = [ "abstime", "aclitem", "bit", "bool", "box", "bpchar", "bytea", "char" ]
11+-- This should produce 7 firings of the "TEXT literal UTF8" rule
13+utf8Strings = [ "\0abstime", "\0aclitem", "\xfefe bit", "\0bool", "\0box", "\0bpchar", "\0bytea" ]
15+-- This should produce 4 firings of the "TEXT empty literal" rule
17+empties = [ "", "", "", "" ]
19+-- This should produce 5 firings of the "TEXT empty literal" rule
20+--singletons :: [Text]
21+--singletons = [ "a", "b", "c", "d", "e" ]