feat(tvix/eval/tvix_tests): add some more xml tests
https: //cl.tvl.fyi/c/depot/+/10686/comment/ea582dae_574d6c3f/ Change-Id: Iac74abbf2f2e0327bc9ddf9dcc6bb43f918a1c63 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10689 Autosubmit: flokli <flokli@flokli.de> Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
This commit is contained in:
parent
0b3245211e
commit
e0a1c03b24
2 changed files with 48 additions and 0 deletions
41
tvix/eval/src/tests/tvix_tests/eval-okay-xml.exp.xml
Normal file
41
tvix/eval/src/tests/tvix_tests/eval-okay-xml.exp.xml
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<expr>
|
||||||
|
<attrs>
|
||||||
|
<attr name="attrspat">
|
||||||
|
<function>
|
||||||
|
<attrspat name="args">
|
||||||
|
<attr name="x" />
|
||||||
|
<attr name="y" />
|
||||||
|
<attr name="z" />
|
||||||
|
</attrspat>
|
||||||
|
</function>
|
||||||
|
</attr>
|
||||||
|
<attr name="attrspat-ellipsis">
|
||||||
|
<function>
|
||||||
|
<attrspat ellipsis="1" name="args">
|
||||||
|
<attr name="x" />
|
||||||
|
<attr name="y" />
|
||||||
|
<attr name="z" />
|
||||||
|
</attrspat>
|
||||||
|
</function>
|
||||||
|
</attr>
|
||||||
|
<attr name="noattrspat">
|
||||||
|
<function>
|
||||||
|
<attrspat>
|
||||||
|
<attr name="x" />
|
||||||
|
<attr name="y" />
|
||||||
|
<attr name="z" />
|
||||||
|
</attrspat>
|
||||||
|
</function>
|
||||||
|
</attr>
|
||||||
|
<attr name="noattrspat-ellipsis">
|
||||||
|
<function>
|
||||||
|
<attrspat ellipsis="1">
|
||||||
|
<attr name="x" />
|
||||||
|
<attr name="y" />
|
||||||
|
<attr name="z" />
|
||||||
|
</attrspat>
|
||||||
|
</function>
|
||||||
|
</attr>
|
||||||
|
</attrs>
|
||||||
|
</expr>
|
7
tvix/eval/src/tests/tvix_tests/eval-okay-xml.nix
Normal file
7
tvix/eval/src/tests/tvix_tests/eval-okay-xml.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
attrspat = args@{ x, y, z }: x;
|
||||||
|
attrspat-ellipsis = args@{ x, y, z, ... }: x;
|
||||||
|
|
||||||
|
noattrspat = { x, y, z }: x;
|
||||||
|
noattrspat-ellipsis = { x, y, z, ... }: x;
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue