tasty-1.4.0.3: Modern and extensible testing framework
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Tasty.Patterns.Types

Documentation

data Expr Source #

Constructors

IntLit !Int 
NF

number of fields

Add Expr Expr 
Sub Expr Expr 
Neg Expr 
Not Expr 
And Expr Expr 
LT Expr Expr 
GT Expr Expr 
LE Expr Expr 
GE Expr Expr 
EQ Expr Expr 
NE Expr Expr 
Or Expr Expr 
Concat Expr Expr 
Match Expr String 
NoMatch Expr String 
Field Expr

nth field of the path, where 1 is the outermost group name and 0 is the whole test name, using . (dot) as a separator

StringLit String 
If Expr Expr Expr 
ERE String

an ERE token by itself, like foo but not like $1 ~ foo

ToUpperFn Expr 
ToLowerFn Expr 
LengthFn (Maybe Expr) 
MatchFn Expr String 
SubstrFn Expr Expr (Maybe Expr) 

Instances

Instances details
Eq Expr Source # 
Instance details

Defined in Test.Tasty.Patterns.Types

Methods

(==) :: Expr -> Expr -> Bool #

(/=) :: Expr -> Expr -> Bool #

Show Expr Source # 
Instance details

Defined in Test.Tasty.Patterns.Types

Methods

showsPrec :: Int -> Expr -> ShowS #

show :: Expr -> String #

showList :: [Expr] -> ShowS #