add more tests

This commit is contained in:
Dmitriy Pleshevskiy 2022-12-09 09:05:20 +03:00
parent 25adf22f55
commit 6032250d6d
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
2 changed files with 83 additions and 34 deletions

View file

@ -21,7 +21,7 @@ foo.bar.biz
)
================================================================================
Use quoted string as a shape key
Use quoted string as keys
================================================================================
'foo'.'baz'
@ -67,39 +67,6 @@ foo: {
)
)
================================================================================
Declare a container with complex keys
================================================================================
Foo biz bar: {
bar biz baz: {
-biz-baz-Baz-: {
Helo world
}
}
}
--------------------------------------------------------------------------------
(source_file
(container
(container_key)
(block
(container
(container_key)
(block
(container
(container_key)
(block
(shape (shape_key))
)
)
)
)
)
)
)
================================================================================
Declare labeled container inside a labeled container using block
================================================================================
@ -159,3 +126,74 @@ foo: {
)
)
================================================================================
Declare a container with complex keys
================================================================================
Foo biz bar: {
bar biz baz: {
-biz-baz-Baz-: {
Helo world
}
}
}
--------------------------------------------------------------------------------
(source_file
(container
(container_key)
(block
(container
(container_key)
(block
(container
(container_key)
(block
(shape (shape_key))
)
)
)
)
)
)
)
================================================================================
Declare a container with complex keys and labels
================================================================================
Foo biz bar: Biz biz Bar {
bar biz baz: baz baz biz {
-biz-baz-Baz-: Biz buz Baz {
Helo world
}
}
}
--------------------------------------------------------------------------------
(source_file
(container
(container_key)
(label)
(block
(container
(container_key)
(label)
(block
(container
(container_key)
(label)
(block
(shape (shape_key))
)
)
)
)
)
)
)

View file

@ -104,3 +104,14 @@ foo: Foo {}
(shape (shape_key) (label) (block))
)
================================================================================
Use quoted string as shape key and label
================================================================================
'foo': "Label"
--------------------------------------------------------------------------------
(source_file
(shape (shape_key (string)) (label (string)))
)