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

port all unit tests from clvm to clvm_rs #181

Merged
merged 1 commit into from
Mar 10, 2022
Merged

port all unit tests from clvm to clvm_rs #181

merged 1 commit into from
Mar 10, 2022

Conversation

arvidn
Copy link
Contributor

@arvidn arvidn commented Mar 4, 2022

These additional test now cover all cases covered by the clvm test programs

match s.split_once(" ") {
Some((first, rest)) => (first.trim(), rest.trim()),
None => (s.trim(), ""),
if s.starts_with("\"") {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was made a little bit more sophisticated to support quoted atoms with spaces inside the quotes.

@arvidn arvidn force-pushed the more-unit-tests branch from 6564fe9 to 901b156 Compare March 4, 2022 14:27
@arvidn

This comment was marked as outdated.

@arvidn arvidn requested a review from richardkiss March 7, 2022 08:47
@arvidn arvidn force-pushed the more-unit-tests branch from 5616e3e to f763584 Compare March 7, 2022 13:38
@richardkiss
Copy link
Contributor

The new tests with hex source are very unreadable. How did you create them? I'd really recommend checking in the tools you used to create them, or better yet, keeping the tests in clvm source format so they're not so impenetrable.

@arvidn
Copy link
Contributor Author

arvidn commented Mar 8, 2022

I used the opc tool, and in some cases run as well. I agree, I'm not super happy about it.

@arvidn
Copy link
Contributor Author

arvidn commented Mar 10, 2022

@richardkiss I backed out those run_program tests to fix them in a separate PR.

@arvidn arvidn merged commit 1a5f35e into main Mar 10, 2022
@arvidn arvidn deleted the more-unit-tests branch March 10, 2022 23:25
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.

2 participants