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.
27 lines
767 B
Text
27 lines
767 B
Text
import Std
|
|
import Lean.Elab.Tactic.Grind.LintExceptions
|
|
|
|
/-! Check Array namespace: -/
|
|
|
|
-- These go slightly over 20, but seem reasonable.
|
|
#guard_msgs in
|
|
#grind_lint inspect (min := 22) Array.count_singleton
|
|
#guard_msgs in
|
|
#grind_lint inspect (min := 22) Array.foldl_empty
|
|
#guard_msgs in
|
|
#grind_lint inspect (min := 22) Array.foldr_empty
|
|
|
|
-- `Array.back_singleton` is reasonable at 23.
|
|
#guard_msgs in
|
|
#grind_lint inspect (min := 25) Array.back_singleton
|
|
|
|
-- `Array.getElem_zero_filter` is reasonable at 20.
|
|
#guard_msgs in
|
|
#grind_lint inspect (min := 22) Array.getElem_zero_filter
|
|
|
|
-- `Array.getElem_zero_filterMap` is reasonable at 20.
|
|
#guard_msgs in
|
|
#grind_lint inspect (min := 22) Array.getElem_zero_filterMap
|
|
|
|
#guard_msgs in
|
|
#grind_lint check (min := 20) in Array
|