Skip at describe level for generated tests

This commit is contained in:
Jay Hayes 2017-07-07 15:43:28 -05:00
parent 965a615782
commit 7b3e9e4cb2

View file

@ -33,21 +33,23 @@ tests =
\() -> Expect.equal South robot.bearing \() -> Expect.equal South robot.bearing
] ]
) )
, describe "turn right" , skip <|
((List.range 1 3) describe "turn right"
|> List.scanl (\_ r -> turnRight r) defaultRobot ((List.range 1 3)
|> List.map .bearing |> List.scanl (\_ r -> turnRight r) defaultRobot
|> assertionList [ North, East, South, West ] |> List.map .bearing
|> List.indexedMap (\i e -> skip <| test ("step " ++ toString i) (\() -> e)) |> assertionList [ North, East, South, West ]
) |> List.indexedMap (\i e -> test ("step " ++ toString i) (\() -> e))
, describe )
"turn left" , skip <|
((List.range 1 3) describe
|> List.scanl (\_ r -> turnLeft r) defaultRobot "turn left"
|> List.map .bearing ((List.range 1 3)
|> assertionList [ North, West, South, East ] |> List.scanl (\_ r -> turnLeft r) defaultRobot
|> List.indexedMap (\i e -> skip <| test ("step " ++ toString i) (\() -> e)) |> List.map .bearing
) |> assertionList [ North, West, South, East ]
|> List.indexedMap (\i e -> test ("step " ++ toString i) (\() -> e))
)
, describe "advance positive north" , describe "advance positive north"
(let (let
robot = robot =