Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Suite Scheme #2

Open
NodeGuy opened this issue Oct 6, 2022 · 0 comments
Open

Test Suite Scheme #2

NodeGuy opened this issue Oct 6, 2022 · 0 comments

Comments

@NodeGuy
Copy link

NodeGuy commented Oct 6, 2022

The Push spec calls for a set of test vectors to ensure compliance:

Test suite scheme: A more-or-less standardized "test suite" scheme is intended to help ensure that a Push implementation behaves like other implementations. The scheme is to process three files (a configuration file, a file containing a list of literals for initializing the stacks, and a file containing a program) and to produce an output file that contains a list of literals which, if read back in to the interpreter (that is, if "executed" as a program), would re-create the stacks as they were at the end of the computation. The values in the output file are listed type by type, following the order in which types are declared in the configuration file. Each implementation should also provide some mechanism for comparing its output files with those of other implementations (for example by reading the files and comparing stack states, or by comparing the files in a way that disregards insignificant white space). For systems that use configuration code, rather than configuration files, this scheme would have to be altered somewhat.

I went poking around other implementations looking for such a test vector suite, independent of code, that we could re-use for PlushScript but didn't succeed in finding something suitable. Do you know how we can get one to test PushScript?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant