lean4-htt/tests/lean/run/bigctor.lean
Kim Morrison 3a457e6ad6
chore: use #guard_msgs in run tests (#4175)
Many of our tests in `tests/lean/run/` produce output from `#eval` (or
`#check`) statements, that is then ignored.

This PR tries to capture all the useful output using `#guard_msgs`. I've
only done a cursory check that the output is still sane --- there is a
chance that some "unchecked" tests have already accumulated regressions
and this just cements them!

In the other direction, I did identify two rotten tests:
* a minor one in `setStructInstNotation.lean`, where a comment says `Set
Nat`, but `#check` actually prints `?_`. Weird?
* `CompilerProbe.lean` is generating empty output, apparently indicating
that something is broken, but I don't know the signficance of this file.

In any case, I'll ask about these elsewhere.

(This started by noticing that a recent `grind` test file had an
untested `trace_state`, and then got carried away.)
2024-05-16 00:38:31 +00:00

77 lines
1.3 KiB
Text

set_option genInjectivity false
structure Foo where
x1 : Nat := 0
x2 : Nat := 0
x3 : Nat := 0
x4 : Nat := 0
x5 : Nat := 0
x6 : Nat := 0
x7 : Nat := 0
x8 : Nat := 0
x9 : Nat := 0
x10 : Nat := 0
y1 : Nat := 0
y2 : Nat := 0
y3 : Nat := 0
y4 : Nat := 0
y5 : Nat := 0
y6 : Nat := 0
y7 : Nat := 0
y8 : Nat := 0
y9 : Nat := 0
y10 : Nat := 0
z1 : Nat := 0
z2 : Nat := 0
z3 : Nat := 0
z4 : Nat := 0
z5 : Nat := 0
z6 : Nat := 0
z7 : Nat := 0
z8 : Nat := 0
z9 : Nat := 0
z10 : Nat := 0
w1 : Nat := 0
w2 : Nat := 0
w3 : Nat := 0
w4 : Nat := 0
w5 : Nat := 0
w6 : Nat := 0
w7 : Nat := 0
w8 : Nat := 0
w9 : Nat := 0
w10 : Nat := 0
xx1 : Nat := 0
xx2 : Nat := 0
xx3 : Nat := 0
xx4 : Nat := 0
xx5 : Nat := 0
xx6 : Nat := 0
xx7 : Nat := 0
xx8 : Nat := 0
xx9 : Nat := 0
xx10 : Nat := 0
yy1 : Nat := 0
yy2 : Nat := 0
yy3 : Nat := 0
yy4 : Nat := 0
yy5 : Nat := 0
yy6 : Nat := 0
yy7 : Nat := 0
yy8 : Nat := 0
yy9 : Nat := 0
yy10 : Nat := 0
ww1 : Nat := 0
ww2 : Nat := 0
ww3 : Nat := 0
ww4 : Nat := 0
ww5 : Nat := 0
ww6 : Nat := 0
ww7 : Nat := 0
ww8 : Nat := 0
ww9 : Nat := 0
ww10 : Nat := 0
@[noinline] def mkFoo (x : Nat) : Foo :=
{ yy10 := x }
#guard (mkFoo 10).yy10 == 10