Skip to content

Commit

Permalink
fix until_test
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanBrewer317 committed Apr 5, 2024
1 parent afa7af7 commit b065b94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/party_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ pub fn fail_test() {
pub fn until_test() {
party.go(party.until(do: party.char("a"), until: party.char("b")), "aab")
|> should.equal(Ok(["a", "a"]))
party.go(party.until(do: party.char("a"), until: party.char("b")), "a")
|> should.equal(Error(party.Unexpected(party.Position(1, 2), "EOF")))
party.go(party.until(do: party.char("a"), until: party.char("c")), "ac")
party.go(party.until(do: party.char("a"), until: party.char("b")), "aaa")
|> should.equal(Error(party.Unexpected(party.Position(1, 4), "EOF")))
party.go(party.until(do: party.char("a"), until: party.char("b")), "ac")
|> should.equal(Error(party.Unexpected(party.Position(1, 2), "c")))
}

0 comments on commit b065b94

Please sign in to comment.