Skip to content

Fix DelegateSpeedTest not running in all localisations#36

Open
rklec wants to merge 1 commit intomadhatter22:masterfrom
rklec:patch-3
Open

Fix DelegateSpeedTest not running in all localisations#36
rklec wants to merge 1 commit intomadhatter22:masterfrom
rklec:patch-3

Conversation

@rklec
Copy link

@rklec rklec commented May 23, 2024

As , is a thousand separator (only) in (US) English or so, this test would fail in other localizations such as German with an exception while parsing.

AFAIK this is how you usually separate that in C# without having to resort to parsing static strings.

As `,` is a thousand separator (only) in (US) English or so, this test would fail in other localizations such as German with an exception while parsing.
@rklec
Copy link
Author

rklec commented May 23, 2024

Oh, and please note this could (have skewed) the performance benchmarks, as it may have been parsed at each iteration (Actually not sure, but well at least once)? Now the looping is not parsed anymore.

@rklec rklec changed the title Fix DelegateSpeedTest not running on other localisations Fix DelegateSpeedTest not running in other localisations May 23, 2024
@rklec rklec changed the title Fix DelegateSpeedTest not running in other localisations Fix DelegateSpeedTest not running in all localisations May 23, 2024
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.

1 participant