Add indentation tests
This commit is contained in:
parent
f8f328fa17
commit
0ca28eb2e9
3 changed files with 97 additions and 0 deletions
22
test/indent/expressions.bp
Normal file
22
test/indent/expressions.bp
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
foo = 1 + 2
|
||||
|
||||
foo = [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
]
|
||||
|
||||
foo = {
|
||||
foo: [
|
||||
"bar",
|
||||
],
|
||||
},
|
||||
|
||||
foo = {
|
||||
foo: [
|
||||
"bar",
|
||||
{
|
||||
key: "value",
|
||||
},
|
||||
],
|
||||
},
|
||||
28
test/indent/select.bp
Normal file
28
test/indent/select.bp
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
foo = select(variant("VARIANT"), {
|
||||
"x86": "my_x86",
|
||||
"x86_64": [
|
||||
"x86",
|
||||
"x64",
|
||||
],
|
||||
"arm": {
|
||||
some: "aarch",
|
||||
value: "aarch64",
|
||||
},
|
||||
default: 0,
|
||||
})
|
||||
|
||||
foo = select(
|
||||
variant("VARIANT"),
|
||||
{
|
||||
"x86": "my_x86",
|
||||
"x86_64": [
|
||||
"x86",
|
||||
"x64",
|
||||
],
|
||||
"arm": {
|
||||
some: "aarch",
|
||||
value: "aarch64",
|
||||
},
|
||||
default: 0,
|
||||
}
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue