lean4-htt/tests/lean/run/setOptionErrors.lean
jrr6 30afb0dbec
feat: improve set_option error messages (#9496)
This PR improves the error messages produced by the `set_option`
command.
2025-07-26 02:04:45 +00:00

20 lines
383 B
Text

/-!
# `set_option` Errors
Tests the error messages produced by the `set_option` command.
-/
/-- error: Unknown option `nonexistent_option_name` -/
#guard_msgs in
set_option nonexistent_option_name false
/--
error: set_option value type mismatch: The value
21
has type
Nat
but the option `pp.explicit` expects a value of type
Bool
-/
#guard_msgs in
set_option pp.explicit 21