Skip to content

Commit

Permalink
reftests: specify error on empty line '### '
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbou committed Dec 15, 2021
1 parent d213ff1 commit f9d774c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/reftests/run.ml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ let is_prefix pfx s =
String.sub s 0 (String.length pfx) = pfx

let rem_prefix pfx s =
if not (is_prefix pfx s) then invalid_arg "rem_prefix"
if not (is_prefix pfx s) || s = pfx then invalid_arg "rem_prefix"
else String.sub s (String.length pfx) (String.length s - String.length pfx)

(* Test file format: {v
Expand Down

0 comments on commit f9d774c

Please sign in to comment.