Skip to content

Improve type fidelity in UnquotedStringTypeDeserialization test#1076

Merged
EdwardCooke merged 1 commit intoaaubry:masterfrom
jhgbrt:master
Apr 9, 2026
Merged

Improve type fidelity in UnquotedStringTypeDeserialization test#1076
EdwardCooke merged 1 commit intoaaubry:masterfrom
jhgbrt:master

Conversation

@jhgbrt
Copy link
Copy Markdown

@jhgbrt jhgbrt commented Jan 9, 2026

Improve type fidelity in UnquotedStringTypeDeserialization test

Use FormattableString.Invariant for culture-invariant YAML formatting. Add assertion to verify deserialized value type matches expected type.

WithAttemptingUnquotedStringTypeDeserialization supports floating point numbers (single/double), but with hard-coded match of '.' as decimal separator only.

fixes #1075

Improve type fidelity in UnquotedStringTypeDeserialization test

Use FormattableString.Invariant for culture-invariant YAML formatting. Add assertion to verify deserialized value type matches expected type.

WithAttemptingUnquotedStringTypeDeserialization supports floating point numbers (single/double), but with hard-coded match of '.' as decimal separator only.
@EdwardCooke EdwardCooke merged commit 4fae1f0 into aaubry:master Apr 9, 2026
1 check passed
This was referenced Apr 9, 2026
This was referenced Apr 13, 2026
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.

UnquotedStringTypeDeserialization_RegularNumbers test fails for floating point numbers

2 participants