mirror of
https://github.com/RGBCube/alejandra
synced 2025-07-29 19:47:45 +00:00
test: add same line comment cases
This commit is contained in:
parent
635ba7a186
commit
675e07a5cf
3 changed files with 34 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
set -euo pipefail
|
||||
|
||||
wasm-pack build --target web
|
||||
rm -rf node_modules/
|
||||
yarn install
|
||||
yarn build
|
||||
|
||||
|
|
|
@ -41,4 +41,17 @@
|
|||
/* test
|
||||
* test
|
||||
*/
|
||||
|
||||
[
|
||||
a # comment
|
||||
]
|
||||
|
||||
{
|
||||
a = 123; # comment
|
||||
}
|
||||
|
||||
({
|
||||
a, # comment
|
||||
b ? 2,# comment
|
||||
}: _)
|
||||
]
|
||||
|
|
|
@ -48,4 +48,24 @@
|
|||
test
|
||||
* test
|
||||
*/
|
||||
|
||||
[
|
||||
a
|
||||
# comment
|
||||
]
|
||||
|
||||
{
|
||||
a = 123;
|
||||
# comment
|
||||
}
|
||||
|
||||
(
|
||||
{
|
||||
a,
|
||||
# comment
|
||||
b ? 2,
|
||||
# comment
|
||||
}:
|
||||
_
|
||||
)
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue