chore: add test cases for std.manifestYamlDoc error reporting

This commit is contained in:
John Bartholomew 2025-06-19 15:33:25 +01:00
parent 80c7c4ad72
commit 10aef6a96c
6 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,15 @@
RUNTIME ERROR: foo
-------------------------------------------------
testdata/std.manifestYamlDoc_error:1:31-42 object <anonymous>
std.manifestYamlDoc({ x: { y: error 'foo' } })
-------------------------------------------------
testdata/std.manifestYamlDoc_error:1:1-47 $
std.manifestYamlDoc({ x: { y: error 'foo' } })
-------------------------------------------------
During evaluation

View File

@ -0,0 +1 @@
std.manifestYamlDoc({ x: { y: error 'foo' } })

View File

View File

@ -0,0 +1 @@
"\"x\":\n \"y\": 1"

View File

@ -0,0 +1 @@
std.manifestYamlDoc({ x: { y: 1 } })

View File