mirror of
https://github.com/typst/typst
synced 2025-05-17 02:25:27 +08:00
Add test
This commit is contained in:
parent
12f33697ce
commit
1025419b5a
BIN
tests/ref/math-lr-mid-class.png
Normal file
BIN
tests/ref/math-lr-mid-class.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 839 B |
@ -77,6 +77,19 @@ $ lr(body) quad
|
||||
lr(size: #1em, body) quad
|
||||
lr(size: #(1em+20%), body) $
|
||||
|
||||
--- math-lr-mid-class ---
|
||||
// Test that `mid` keeps the original class.
|
||||
$ (a |b) $
|
||||
$ (a mid(|)b) $
|
||||
--
|
||||
$ (a class("fence", |)b) $
|
||||
$ (a mid(class("fence", |))b) $
|
||||
$ (a class("fence", mid(|))b) $
|
||||
--
|
||||
$ (a class("binary", |)b) $
|
||||
$ (a mid(class("binary", |))b) $
|
||||
$ (a class("binary", mid(|))b) $
|
||||
|
||||
--- math-lr-unbalanced ---
|
||||
// Test unbalanced delimiters.
|
||||
$ 1/(2 (x) $
|
||||
|
Loading…
x
Reference in New Issue
Block a user