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 2876886 commit 18a2fff
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 18a2fff

Please sign in to comment.