Skip to content

Commit

Permalink
Update expectedResult in parser sanity test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
adithyaov committed Oct 8, 2024
1 parent f609342 commit 860b31f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Streamly/Test/Data/Parser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1349,7 +1349,7 @@ tapeLen = length tape
expectedResult :: [Move] -> (Either ParseError [Int], [Int])
expectedResult moves = go 1 1 [] moves
where
go i _ ys [] = (Right ys, [i..tapeLen])
go i j ys [] = (Right ys, [(max i j)..tapeLen])
go i j ys ((Consume n):xs)
| i + n - 1 > tapeLen = (Left (ParseError "INCOMPLETE"), tape)
| otherwise = go (i + n) j (ys ++ [i..(i + n - 1)]) xs
Expand Down

0 comments on commit 860b31f

Please sign in to comment.