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.
20 lines
424 B
Text
20 lines
424 B
Text
class Approx {α : Type} (a : α) (X : Type) : Type where
|
||
val : X
|
||
|
||
variable {α β X Y : Type} {f' : α → β} {x' : α} [f : Approx f' (X → Y)] [x : Approx x' X]
|
||
|
||
-- fails
|
||
/-- info: Approx.val f' (Approx.val x') : Y -/
|
||
#guard_msgs in
|
||
#check f.val x.val
|
||
|
||
-- works
|
||
/--
|
||
info: let f'' := Approx.val f';
|
||
let x'' := Approx.val x';
|
||
f'' x'' : Y
|
||
-/
|
||
#guard_msgs in
|
||
#check let f'' := f.val
|
||
let x'' := x.val
|
||
f'' x''
|