Skip to content
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

1860 unit test failing locally fixed #1861

Merged
merged 1 commit into from
Jan 9, 2023

Conversation

georgeDaskalakis
Copy link
Contributor

closes #1860

@@ -50,7 +51,8 @@ protected override void LoadFromFile(string path)
while (csv.ReadNextRecord())
{
csv.CopyCurrentRecordTo(currentRow);
var rowList = currentRow.Select(x => x.Replace(csvSeparators.DecimalSeparator, '.')).ToList();
var currentCultureDecimalSeparator = Convert.ToChar(Thread.CurrentThread.CurrentCulture.NumberFormat.NumberDecimalSeparator);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is pretty nice.
I pulled the branch and tried it on my PC and it works (using the starter project). However, it occurs to me that on my machine the new code is identical to what was there since my NumberDecimalSeparator will be '.' anyway.

Could you make sure that you can import this file from on your machine:
#1821

You could probably also skip the Replace if the characters searched and replaced are the same anyway (ie both '.' or both ',')

@georgeDaskalakis georgeDaskalakis merged commit 20edf28 into develop Jan 9, 2023
@georgeDaskalakis georgeDaskalakis deleted the 1860-unit-test-failing-locally- branch January 9, 2023 17:33
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.

Importer: unit test failing locally
3 participants