-
Notifications
You must be signed in to change notification settings - Fork 275
fix(csharp): normalize datetime strings in snippet generator #11737
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
base: main
Are you sure you want to change the base?
Conversation
🌱 Seed Test SelectorSelect languages to run seed tests for:
How to use: Click the ⋯ menu above → "Edit" → check the boxes you want → click "Update comment". Tests will run automatically and snapshots will be committed to this PR. |
db746bf to
a5db430
Compare
| ); | ||
| } | ||
|
|
||
| [NUnit.Framework.Test] |
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.
here is the relevant test that would have failed before this
6b76e19 to
5ba7658
Compare
| set: optional<set<string>> | ||
| map: optional<map<integer, string>> | ||
| bigint: optional<bigint> | ||
| datetimeinstring: optional<string> |
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.
horrible casing lol
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.
change it to datetime_in_string
| set: optional<set<string>> | ||
| map: optional<map<integer, string>> | ||
| bigint: optional<bigint> | ||
| datetimeinstring: optional<string> |
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.
change it to datetime_in_string
Description
Occasionally, strings that were in fact DateTimes would be normalized by the wire test generator, but not in the snippet generator, leading to mismatches and failed wire tests; this normalizes those DateTimes in the snippet generator.
Changes Made
Just to csharp-model.