Skip to content

Commit

Permalink
Don't rely on random memory on tests
Browse files Browse the repository at this point in the history
Signed-off-by: Marcello Seri <[email protected]>
  • Loading branch information
mseri committed Sep 29, 2020
1 parent 23df98a commit 7419436
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/tests.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module ImageLib_PNG_tests = struct

let self_test_1 () =
let img = Image.create_rgb 3 3 in
Image.fill_rgb img 0 0 0;
let enc = ImageLib.PNG.bytes_of_png img in
let dec = ImageLib.PNG.parsefile
(ImageUtil.chunk_reader_of_string (Bytes.to_string enc)) in
Expand Down

0 comments on commit 7419436

Please sign in to comment.