You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be able to assert whether or not the function returns an error.
fnfoo() !MyStruct
assert foo // fails if Result type is returned
Use Case
To be able to check for no errors in tests files. The Result type is very useful for handling errors and I think that being able to test them with v test goes hand in hand with it's purpose to handle errors properly. (I dont have a specific syntax in mind)
Acknowledgements
I may be able to implement this feature request
This feature might incur a breaking change
Version used
V 0.4.6
Environment details (OS name and version, etc.)
V 0.4.6
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered:
Describe the feature
To be able to assert whether or not the function returns an error.
Use Case
To be able to check for no errors in tests files. The Result type is very useful for handling errors and I think that being able to test them with
v test
goes hand in hand with it's purpose to handle errors properly. (I dont have a specific syntax in mind)Acknowledgements
Version used
V 0.4.6
Environment details (OS name and version, etc.)
V 0.4.6
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: