git.iko.soy/ikoHSE/sc-task-3
on master help sign in
Resolves #1
commit5a9b50eaab7876f6b13a85de1140f2523b61ece1 authoriko <ilyakooo0@gmail.com> dateSun 24 May 2020, 00:56 (6 years ago) parentbbaa6e9
1 file changed+2−2
test/Tests.hs+2−2
test/Tests.hs+2−2
@@ -183,8 +183,8 @@ tests = parallel $ do
183183 }
184184 specify "non-empty" $ do
185185 let testReadInput :: NonEmptyList Int -> Property
186− testReadInput (NonEmpty l@(x : _)) =
187− executeErrorState (state l) readInput === Right x
186+ testReadInput (NonEmpty l@(x : xs)) =
187+ ((fst &&& bfInput . snd) <$> runErrorState readInput (state l)) === Right (x, xs)
188188 property testReadInput
189189 specify "empty" $ do
190190 executeErrorState (state []) readInput