This PR sets up the new integrated test/bench suite. It then migrates all benchmarks and some related tests to the new suite. There's also some documentation and some linting. For now, a lot of the old tests are left alone so this PR doesn't become even larger than it already is. Eventually, all tests should be migrated to the new suite though so there isn't a confusing mix of two systems.
97 lines
1.6 KiB
Text
97 lines
1.6 KiB
Text
/-!
|
|
# Testing pretty printing option `pp.piBinderNames`
|
|
-/
|
|
|
|
/-!
|
|
Tests of default options.
|
|
-/
|
|
section
|
|
|
|
/-!
|
|
Unused name, doesn't print.
|
|
-/
|
|
/-- info: Nat → Type : Type 1 -/
|
|
#guard_msgs in #check (x : Nat) → Type
|
|
|
|
/-!
|
|
Unused hygienic name, doesn't print.
|
|
-/
|
|
/-- info: Nat → Type : Type 1 -/
|
|
#guard_msgs in #check Nat → Type
|
|
|
|
end
|
|
|
|
/-!
|
|
Tests with `pp.piBinderNames` enabled.
|
|
-/
|
|
section
|
|
set_option pp.piBinderNames true
|
|
|
|
/-!
|
|
Unused name, prints since not hygienic.
|
|
-/
|
|
/-- info: (x : Nat) → Type : Type 1 -/
|
|
#guard_msgs in #check (x : Nat) → Type
|
|
|
|
/-!
|
|
Unused hygienic name, doesn't print.
|
|
-/
|
|
/-- info: Nat → Type : Type 1 -/
|
|
#guard_msgs in #check Nat → Type
|
|
|
|
end
|
|
|
|
/-!
|
|
Tests with `pp.piBinderNames` and `pp.piBinderNames.hygienic` enabled.
|
|
-/
|
|
section
|
|
set_option pp.piBinderNames true
|
|
set_option pp.piBinderNames.hygienic true
|
|
|
|
/-!
|
|
Prints unused name.
|
|
-/
|
|
/-- info: (x : Nat) → Type : Type 1 -/
|
|
#guard_msgs in #check (x : Nat) → Type
|
|
|
|
/-!
|
|
Prints unused hygienic name.
|
|
-/
|
|
/-- info: (a : Nat) → Type : Type 1 -/
|
|
#guard_msgs in #check Nat → Type
|
|
|
|
end
|
|
|
|
/-!
|
|
Tests with `pp.all`. Enables `pp.piBinderNames`.
|
|
-/
|
|
section
|
|
set_option pp.all true
|
|
|
|
/-!
|
|
Unused name, prints since not hygienic.
|
|
-/
|
|
/-- info: (x : Nat) → Type : Type 1 -/
|
|
#guard_msgs in #check (x : Nat) → Type
|
|
|
|
/-!
|
|
Unused hygienic name, doesn't print.
|
|
-/
|
|
/-- info: Nat → Type : Type 1 -/
|
|
#guard_msgs in #check Nat → Type
|
|
|
|
set_option pp.piBinderNames.hygienic true
|
|
|
|
/-!
|
|
Prints unused name.
|
|
-/
|
|
/-- info: (x : Nat) → Type : Type 1 -/
|
|
#guard_msgs in #check (x : Nat) → Type
|
|
|
|
/-!
|
|
Prints unused hygienic name.
|
|
-/
|
|
/-- info: (a : Nat) → Type : Type 1 -/
|
|
#guard_msgs in #check Nat → Type
|
|
|
|
end
|