From e0a1c03b2471271fc96690b3dc5dd5423f93fa42 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 24 Jan 2024 16:15:44 +0200 Subject: 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 Reviewed-by: tazjin Tested-by: BuildkiteCI --- .../src/tests/tvix_tests/eval-okay-xml.exp.xml | 41 ++++++++++++++++++++++ tvix/eval/src/tests/tvix_tests/eval-okay-xml.nix | 7 ++++ 2 files changed, 48 insertions(+) create mode 100644 tvix/eval/src/tests/tvix_tests/eval-okay-xml.exp.xml create mode 100644 tvix/eval/src/tests/tvix_tests/eval-okay-xml.nix (limited to 'tvix/eval/src/tests/tvix_tests') diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-xml.exp.xml b/tvix/eval/src/tests/tvix_tests/eval-okay-xml.exp.xml new file mode 100644 index 000000000000..1521bcc97afc --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-xml.exp.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-xml.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-xml.nix new file mode 100644 index 000000000000..3cc5acf43023 --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-xml.nix @@ -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; +} -- cgit 1.4.1