chore: add test for sepByIndent.formatter

This commit is contained in:
Gabriel Ebner 2022-06-23 21:50:18 +02:00 committed by Sebastian Ullrich
parent d5142ddeb8
commit 233a787e65
2 changed files with 22 additions and 0 deletions

View 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]* })

View file

@ -0,0 +1,6 @@
frobnicate✝ { x✝ := x✝, x✝ := x✝, x✝ := x✝, x✝ := x✝ }
frobnicate✝ {
x✝ := x✝
x✝ := x✝
x✝ := x✝
x✝ := x✝ }