Skip to content

Commit e01c1a0

Browse files
committed
Fix tests so that check_alignment expects a negative result
1 parent e891d3f commit e01c1a0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: lib_test/tests.ml

+5-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,11 @@ let check_alignment alignment () =
116116

117117
let check_alignment_zero () =
118118
let buf = Cstruct.create 512 in
119-
assert_equal (Cstruct.check_alignment buf 0) false
119+
try
120+
assert_equal (Cstruct.check_alignment buf 0) false;
121+
assert false
122+
with
123+
Invalid_argument _ -> ()
120124

121125
let _ =
122126
let suite =

0 commit comments

Comments
 (0)