chore: add test for sepByIndent.formatter
This commit is contained in:
parent
d5142ddeb8
commit
233a787e65
2 changed files with 22 additions and 0 deletions
16
tests/lean/sepByIndentQuot.lean
Normal file
16
tests/lean/sepByIndentQuot.lean
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import Lean
|
||||
open Lean Elab
|
||||
|
||||
#eval show TermElabM _ from do
|
||||
let x ← `(x)
|
||||
let xs := #[x,x,x,x]
|
||||
let ys := xs
|
||||
PrettyPrinter.ppTerm <|<-
|
||||
`(frobnicate { $[$xs:ident := $ys:term],* })
|
||||
|
||||
#eval show TermElabM _ from do
|
||||
let x ← `(x)
|
||||
let xs := #[x,x,x,x]
|
||||
let ys := xs
|
||||
PrettyPrinter.ppTerm <|<-
|
||||
`(frobnicate { $[$xs:ident := $ys:term]* })
|
||||
6
tests/lean/sepByIndentQuot.lean.expected.out
Normal file
6
tests/lean/sepByIndentQuot.lean.expected.out
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
frobnicate✝ { x✝ := x✝, x✝ := x✝, x✝ := x✝, x✝ := x✝ }
|
||||
frobnicate✝ {
|
||||
x✝ := x✝
|
||||
x✝ := x✝
|
||||
x✝ := x✝
|
||||
x✝ := x✝ }
|
||||
Loading…
Add table
Reference in a new issue