Skip to content

Commit fdfb16c

Browse files
committed
Update tests
1 parent 6b67252 commit fdfb16c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

test/Spec.hs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,19 @@ spec = do
9494
("foo\n -- need to include this too\n bar\n" :: Text) ~> parseList 1
9595
`shouldParse` ["foo", "bar"]
9696
describe "Should Succeed" $
97-
it "list with a comment" $
97+
it "list2 with a comment" $
9898
("foo -- need to include this too\n bar\n" :: Text) ~> parseList 1
9999
`shouldParse` ["foo", "bar"]
100100
describe "Should Succeed" $
101-
it "list with a comment" $
101+
it "list3 with a comment" $
102102
("foo -- need to include this too\n bar" :: Text) ~> parseList 1
103103
`shouldParse` ["foo", "bar"]
104104
describe "Should Succeed" $
105-
it "list with a comment" $
105+
it "list4 with a comment" $
106106
("foo\n bar\n -- need to include this too" :: Text) ~> parseList 1
107107
`shouldParse` ["foo", "bar"]
108108
describe "Should Succeed" $
109-
it "list with a comment" $
109+
it "list5 with a comment" $
110110
("foo\n bar -- need to include this too" :: Text) ~> parseList 1
111111
`shouldParse` ["foo", "bar"]
112112
describe "Should Succeed" $
@@ -121,9 +121,13 @@ spec = do
121121
("other-modules: test\ndefault-language: Haskell2011" :: Text) ~?> field 0 "other-modules" parseList
122122
`leavesUnconsumed` "default-language: Haskell2011"
123123
describe "Should Succeed" $
124-
it "succesfully parses empty other-modules" $
124+
it "succesfully parses empty other-modules1" $
125125
("other-modules: test\ndefault-language: Haskell2011" :: Text) ~?> field 0 "other-modules" parseList
126126
`leavesUnconsumed` "default-language: Haskell2011"
127+
describe "Should Succeed" $
128+
it "succesfully parses empty other-modules2" $
129+
(" other-modules: \n build-depends:\n base >=4.9 && <5" :: Text) ~> field 0 "other-modules" parseList
130+
`shouldParse` []
127131

128132
exeSection :: Text
129133
exeSection =

0 commit comments

Comments
 (0)