Skip to content

Commit ac6cb52

Browse files
committed
test: add test for set_option errors
1 parent b2e9244 commit ac6cb52

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/-!
2+
# `set_option` Errors
3+
4+
Tests the error messages produced by the `set_option` command.
5+
-/
6+
7+
/-- error: Unknown option `nonexistent_option_name` -/
8+
#guard_msgs in
9+
set_option nonexistent_option_name false
10+
11+
/--
12+
error: set_option value type mismatch: The value
13+
21
14+
has type
15+
Nat
16+
but the option `pp.explicit` expects a value of type
17+
Bool
18+
-/
19+
#guard_msgs in
20+
set_option pp.explicit 21

0 commit comments

Comments
 (0)