Skip to content

Commit

Permalink
Fix test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mooreryan committed Sep 16, 2024
1 parent b9056f5 commit b706a9f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/qcheck/gen_char_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,16 @@ pub fn char_uniform__failures_shink_ok__test() {
let s =
qcheck.test_error_message_shrunk_value(msg)
|> string.replace(each: "\"", with: "")
should.be_true(int(s) == 1 || int(s) == 254)

should.be_true(
int(s) == 1
|| int(s) == 254
// TODO
// Technically, this comes from a bug in the `string.replace` function
// above, OR potentially in the shrinking functions. For now, we stick this
// in. See notes for more info.
|| s == "\\u{0001}",
)
}

pub fn char_alpha__test() {
Expand Down

0 comments on commit b706a9f

Please sign in to comment.