Skip to content

Commit b1415a7

Browse files
committed
Current Ormolu formatting.
1 parent ebbceed commit b1415a7

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

test/ArgumentsSpec.hs

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ spec = do
4444
`shouldBe` Nothing
4545

4646
prop "argument must have '=' character" $ \s ->
47-
'=' `notElem` s ==>
48-
validate [s] `shouldSatisfy` isJust
47+
'='
48+
`notElem` s
49+
==> validate [s]
50+
`shouldSatisfy` isJust
4951

5052
prop "argument must not have duplicate keyword" $ \key v v' ->
5153
'=' `notElem` key ==> \keyValues ->
@@ -55,10 +57,12 @@ spec = do
5557
validate args `shouldSatisfy` isJust
5658

5759
prop "argument must have explicitly allowed keyword" $ \key v ->
58-
'=' `notElem` key ==>
59-
key `notElem` ["binary", "path", "hints", "category", "token"] ==>
60-
validate [key <> "=" <> v]
61-
`shouldSatisfy` isJust
60+
'='
61+
`notElem` key
62+
==> key
63+
`notElem` ["binary", "path", "hints", "category", "token"]
64+
==> validate [key <> "=" <> v]
65+
`shouldSatisfy` isJust
6266

6367
describe "translate" $ do
6468
it "translates specific arguments" $
@@ -102,7 +106,16 @@ spec = do
102106
`shouldSatisfy` \(_, _, token, _) -> isNothing token
103107

104108
prop "translates general arguments" $ \binary path hints category token ->
105-
binary /= "" && path /= "" && hints /= "" && category /= "" && token /= ""
109+
binary
110+
/= ""
111+
&& path
112+
/= ""
113+
&& hints
114+
/= ""
115+
&& category
116+
/= ""
117+
&& token
118+
/= ""
106119
==> forAll
107120
( shuffle
108121
[ "binary=" <> binary,

0 commit comments

Comments
 (0)