Skip to content

Commit c559010

Browse files
committed
fix tests
1 parent 8e17a68 commit c559010

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/FmtSignature_test.hs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,19 @@ test_fmt = Tasty.testGroup "fmt"
2626
, "a -> (b -> c) -> d" ==> Just "a\n -> (b -> c)\n -> d"
2727
]
2828
where
29-
f = FmtSignature.fmt 12
3029
(==>) :: Stack.HasCallStack => String -> Maybe String -> Tasty.TestTree
31-
(==>) = test f
30+
(==>) = test (FmtSignature.fmt config)
3231

3332
test_wrap :: Tasty.TestTree
3433
test_wrap = Tasty.testGroup "wrap"
3534
[ ["aaa", "-> bbb", "-> ccc"] ==> ["aaa -> bbb", " -> ccc"]
3635
]
3736
where
3837
(==>) :: Stack.HasCallStack => [String] -> [String] -> Tasty.TestTree
39-
(==>) = test (FmtSignature.wrap 12)
38+
(==>) = test (FmtSignature.wrap config)
39+
40+
config :: FmtSignature.Config
41+
config = FmtSignature.Config 4 12
4042

4143
test :: (Stack.HasCallStack, Show a, Eq b, Show b) => (a -> b) -> a -> b
4244
-> Tasty.TestTree

0 commit comments

Comments
 (0)