-
Notifications
You must be signed in to change notification settings - Fork 253
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 tests for types other than integers #2436
Add tests for types other than integers #2436
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice one, good catch on the float and the tests names, this will make the feature much more robust
InputFloat *float64 `alloy:"input_float,attr,optional"` | ||
InputBool *bool `alloy:"input_bool,attr,optional"` | ||
InputMap *map[string]any `alloy:"input_map,attr,optional"` | ||
InputArray *[]any `alloy:"input_array,attr,optional"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it not work to just have one attribute "any"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would, but I like this approach since it's more clear what we want to test.
* Add tests for types other than integers * Minor fixes to string_receiver * Add a foreach test for maps which contain maps
No description provided.