Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bug: the ForQuickCheck printer produces syntactically invalid tests when run in series: #57

@isovector

Description

@isovector

note to self:

== Laws ==                                                                                   
quickspec_laws :: [(String, Property)]                                                       
quickspec_laws =                                                                             
  [ ( "cat x failMatch = failMatch"                                                          
    , property $                                                                             
        \ (x :: Regex Bool3) ->                                                              
            cat x failMatch =~= failMatch)                                                   
  , ( "cat failMatch x = failMatch"                                                          
    , property $                                                                             
        \ (x :: Regex Bool3) ->                                                              
            cat failMatch x =~= failMatch)                                                   
  , ( "cat (cat x y) z = cat x (cat y z)"                                                    
    , property $                                                                             
        \ (x :: Regex Bool3)                                                                 
          (y :: Regex Bool3)                                                                 
          (z :: Regex Bool3) ->                                                              
            cat (cat x y) z =~= cat x (cat y z))                                             
  ]                                                                                          
                                                                                             
== Functions ==                                                                              
(/=) :: Char -> Char -> Bool                                                                 
both :: Regex Bool3 -> Regex Bool3 -> Regex Bool3                                            
                                                                                             
== Laws ==                                                                                   
quickspec_laws :: [(String, Property)]                                                       
quickspec_laws =                                                                             
  , ( "x /= y = y /= x"  --  <-- uh oh! there is no opening [ here
    , property $ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions