parent
45674394e8
commit
8428d0dd06
1 changed files with 4 additions and 5 deletions
9
TAP.idr
9
TAP.idr
|
@ -332,11 +332,10 @@ mutual
|
||||||
filterMatch1 : String -> Test -> Maybe Test
|
filterMatch1 : String -> Test -> Maybe Test
|
||||||
filterMatch1 pat test@(One base) =
|
filterMatch1 pat test@(One base) =
|
||||||
guard (pat `isInfixOf` base.label) $> test
|
guard (pat `isInfixOf` base.label) $> test
|
||||||
filterMatch1 pat all@(Group label tests) =
|
filterMatch1 pat whole@(Group label tests) =
|
||||||
if pat `isInfixOf` label then Just all else
|
if pat `isInfixOf` label then Just whole else
|
||||||
case filterMatch (Just pat) tests of
|
let res = filterMatch (Just pat) tests in
|
||||||
[] => Nothing
|
guard (any isRealTest res) $> Group label res
|
||||||
res => Just $ Group label res
|
|
||||||
filterMatch1 pat note@(Note _) = Just note
|
filterMatch1 pat note@(Note _) = Just note
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue