Now that #410 has been implemented, we can fix some of the awkwardness in our examples. Currently, we use the pattern of appending to an out.txt file to demonstrate the values that are produced. Now that we implemented #410, we can just print the example values to stdout, and the golden test framework will verify that stdout matches the expected values.
Steps:
Remove out.txt from all examples in the examples dir
Change all append actions that were appending to out.txt to be print actions instead. So under the params section you'll remove paths and rename with to message.
Run the golden-test record command on all changed examples to save the new expected stdout
Now that #410 has been implemented, we can fix some of the awkwardness in our examples. Currently, we use the pattern of
append
ing to anout.txt
file to demonstrate the values that are produced. Now that we implemented #410, we can just print the example values to stdout, and the golden test framework will verify that stdout matches the expected values.Steps:
examples
dirprint
actions instead. So under theparams
section you'll removepaths
and renamewith
tomessage
.golden-test record
command on all changed examples to save the new expected stdout