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

Support DSL values in oracles #439

Merged
merged 8 commits into from
Sep 21, 2023
Merged

Support DSL values in oracles #439

merged 8 commits into from
Sep 21, 2023

Conversation

niknetniko
Copy link
Member

@niknetniko niknetniko commented Sep 20, 2023

Currently, you can overwrite the expected and actual value using oracles. However, these overwritten values are "raw" strings and shown verbatim to the user. This makes it difficult to create a language-independent oracles, as you need to convert values to all programming languages yourself (and furthermore, you don't actually know for which language you are called).

This PR adds support for using the DSL Python-like syntax for these overwrites, meaning TESTed takes care of converting the values into the proper representation in the target programming language.

tested/serialisation.py Dismissed Show dismissed Hide dismissed
@niknetniko niknetniko merged commit 24d4786 into master Sep 21, 2023
7 checks passed
@niknetniko niknetniko deleted the feature/dsl-in-oracles branch September 21, 2023 09:13
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

Successfully merging this pull request may close these issues.

1 participant