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.
18 lines
464 B
Text
18 lines
464 B
Text
-- Recall that we do not generate code for `sizeOf` instances since they are only used for proving termination
|
||
#reduce sizeOf 10
|
||
#reduce sizeOf [1, 2]
|
||
#reduce sizeOf #[1, 2]
|
||
#reduce sizeOf (10 : UInt8)
|
||
#reduce sizeOf 'a'
|
||
#reduce sizeOf ['h', 'e', 'l', 'l', 'o']
|
||
#reduce sizeOf "abc"
|
||
#reduce sizeOf `abc
|
||
|
||
|
||
inductive InfTree (α : Type u)
|
||
| leaf (a : α)
|
||
| node (children : Nat → InfTree α)
|
||
|
||
#reduce sizeOf <| InfTree.leaf 10
|
||
|
||
#check InfTree.node.sizeOf_spec
|