Skip to content

Commit da47375

Browse files
committed
Make sure the cmdline test tests with and without lint
1 parent acfce84 commit da47375

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

tests/cmdline.test

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
11
---------------------------------------------------------------------
2-
RUN lint tests/cmdline.hs
3-
FILE tests/cmdline.hs
2+
RUN lint tests/cmdline-lint.hs
3+
FILE tests/cmdline-lint.hs
44

55
foo = map f (map g xs)
66

77
OUTPUT
8-
tests/cmdline.hs:2:7-22: Suggestion: Use map once
8+
tests/cmdline-lint.hs:2:7-22: Suggestion: Use map once
99
Found:
1010
map f (map g xs)
1111
Perhaps:
1212
map (f . g) xs
13+
14+
1 hint
15+
16+
---------------------------------------------------------------------
17+
RUN tests/cmdline-bare.hs
18+
FILE tests/cmdline-bare.hs
19+
20+
foo = map f (map g xs)
21+
22+
OUTPUT
23+
tests/cmdline-bare.hs:2:7-22: Suggestion: Use map once
24+
Found:
25+
map f (map g xs)
26+
Perhaps:
27+
map (f . g) xs
28+
29+
1 hint

0 commit comments

Comments
 (0)