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

Add runtime test for options #827

Merged
merged 2 commits into from
Feb 5, 2024
Merged

Conversation

vyta
Copy link
Contributor

@vyta vyta commented Jan 31, 2024

Currently tests for options are embedded in other tests, this adds a dedicated runtime test for options.

cc: @jsturtevant

Copy link
Collaborator

@jsturtevant jsturtevant left a comment

Choose a reason for hiding this comment

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

LGTM, but need to run cargo fmt.

@alexcrichton for context, when we were adding Option support to c#(#820) I noticed we didn't have a way to run any runtime tests since we don't fully support all the types where options are used. I thought having a test like this makes it easier to adopt types in iterative fashion for future languages and have runtime tests not just code-gen.

@alexcrichton
Copy link
Member

Sounds good to me! Definitely feel free to add whatever tests you like and if they only have one C# guest that's no problem, other guests can fill in implementations as necessary over time.

@pchickey pchickey merged commit 475ce00 into bytecodealliance:main Feb 5, 2024
9 checks passed
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.

4 participants