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

R script tests #5

Merged
merged 6 commits into from
Feb 6, 2024
Merged

R script tests #5

merged 6 commits into from
Feb 6, 2024

Conversation

Jakobeha
Copy link
Contributor

@Jakobeha Jakobeha commented Feb 1, 2024

Create the test harness which:

  • Reads an R script consisting of a sequence of closure definitions
  • Generates cached/snapshot .rds files with the AST and bytecode of each closure (2 files per closure)
  • Compares the result of reading the AST closure and compiling it on our side, with reading the bytecode closure GNU-R compiled, and asserts they are structurally equivalent
  • Also does a snapshot test on the .toString() of our bytecode representation, so we don't regress deserialization in a way that keeps the bytecodes structurally equivalent

@Jakobeha Jakobeha merged commit 6669e38 into main Feb 6, 2024
2 checks passed
@Jakobeha Jakobeha deleted the script-tests branch February 6, 2024 16:53
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