-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Modified the GuessDelimiter function. #593
base: master
Are you sure you want to change the base?
Conversation
Changed the GuessDelimiter function, so that a new delimiter is chosen as best if its delta value is higher than the current highest. Added a testcase for decimal values with comma as decimal separator and pipes as delimiter. But i couldnt ran the tests as i dont have a node interpreter installed, so i am not sure if the other tests dont break now.
Hi, thanks for the PR I see you've added a new test-cases.js file, you should modify the tests-cases.js file in the test folder. |
Added testcase with pipes and decimal values with commas as decimal separator.
We use tabs for formating and you just added some code with spaces. This breaks the linter , could you please fix it? |
I will prefer to include only in this pull request the changes related to the GuessDelimiter function and move all the other code styling changes in a separate Pull Request. |
Changed the GuessDelimiter function, so that a new delimiter is chosen as best if its delta value is higher than the current chosen.
Added a testcase for decimal values with comma as decimal separator and pipes as delimiter.
(Which should mimic the following test data:
a|3,4|b
c|3,4|d
)
But i couldnt ran the tests because i dont have a node interpreter installed, so i am not sure if the other tests break, altough the test data mentioned above now produces the correct result).