Skip to content

Commit 3cae69c

Browse files
authored
Merge pull request #312 from shym/espace-bytes
Escape bytes when printing in STM
2 parents fa2ab86 + 4fdcd2d commit 3cae69c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- ensure `cleanup` is run in the presence of exceptions in
66
- `STM_sequential.agree_prop` and `STM_domain.agree_prop_par`
77
- `Lin_thread.lin_prop` and `Lin_effect.lin_prop`
8+
- #312: Escape and quote `bytes` printed with `STM`'s `bytes` combinator
89

910
## 0.1.1
1011

lib/STM.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ let int32 = (Int32, Int32.to_string)
3131
let int64 = (Int64, Int64.to_string)
3232
let float = (Float, Float.to_string)
3333
let string = (String, fun s -> Printf.sprintf "%S" s)
34-
let bytes = (Bytes, fun b -> QCheck.Print.string (Bytes.to_string b))
34+
let bytes = (Bytes, fun b -> Printf.sprintf "%S" (Bytes.to_string b))
3535
let option spec =
3636
let (ty,show) = spec in
3737
(Option ty, QCheck.Print.option show)

0 commit comments

Comments
 (0)