make skip functions make more sense
This commit is contained in:
parent
e3384d4e6e
commit
434f0e08d1
1 changed files with 10 additions and 5 deletions
|
@ -84,13 +84,18 @@ export %inline
|
|||
todo : String -> Test
|
||||
todo label = todoWith label ""
|
||||
|
||||
export %inline
|
||||
skipWith : String -> String -> Test
|
||||
skipWith label reason = One $ MakeTest label $ pure $ Skip reason
|
||||
private %inline
|
||||
makeSkip : String -> String -> Test
|
||||
makeSkip label reason = One $ MakeTest label $ pure $ Skip reason
|
||||
|
||||
export %inline
|
||||
skip : String -> Test
|
||||
skip label = skipWith label ""
|
||||
skipWith : Test -> String -> Test
|
||||
skipWith (One t) reason = makeSkip t.label reason
|
||||
skipWith (Group l _) reason = makeSkip l reason
|
||||
|
||||
export %inline
|
||||
skip : Test -> Test
|
||||
skip test = skipWith test ""
|
||||
|
||||
export
|
||||
testThrows : Show a => String -> Lazy (Error es a) -> Test
|
||||
|
|
Loading…
Reference in a new issue