Skip to content

Commit d427dbf

Browse files
committed
fix(grader): Display negative numbers with mandatory parens; Fix #440
* Thanks @letouzey for reporting this issue and suggesting a fix
1 parent 07033c9 commit d427dbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/grader/introspection.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ let print_value ppf v ty =
183183
state := `Undecided ;
184184
for i = ofs to ofs + len - 1 do
185185
match String.get s i with
186-
| ' ' | '\n' | '\r' | '\t' ->
186+
| '-' | ' ' | '\n' | '\r' | '\t' ->
187187
state := `Decided true ;
188188
raise Exit
189189
| _ -> ()

0 commit comments

Comments
 (0)