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

Fix the NaN bug reported in issue 21 #23

Merged
merged 5 commits into from
Jun 8, 2024

Conversation

BrianBasor
Copy link
Contributor

This fixes #21 .

I really don't know why the compiler wanted to convert the TypeScript code the wrong way, but using Array.from instead of the spread operator and the array initializer seemed to work properly in my tests.

While I was at it, I fixed up the pluralization logic, but if that's getting off topic, I can yank that commit.

What do you think?

… errors

The only number to report as a singular is when there is one item.
Zero should be reported as a plural.
Was: `0 error already in baseline.`
Now: `0 errors already in baseline.`
src/cli.ts Outdated Show resolved Hide resolved
src/util.ts Show resolved Hide resolved
BrianBasor and others added 2 commits June 6, 2024 12:13
- Use strict equality
- Specify that these are new errors

Co-authored-by: Will Douglas <willygdouglas@gmail.com>
Co-authored-by: Will Douglas <willygdouglas@gmail.com>
@BrianBasor
Copy link
Contributor Author

Thanks for the helpful suggestions @wdoug !

@wdoug
Copy link
Contributor

wdoug commented Jun 7, 2024

@TimMikeladze, any chance we could move to get this merged/get this bug fixed soon?

@TimMikeladze
Copy link
Owner

TimMikeladze commented Jun 7, 2024 via email

@TimMikeladze TimMikeladze merged commit 9a3dd2a into TimMikeladze:master Jun 8, 2024
@TimMikeladze
Copy link
Owner

Published as 1.4.0. Thanks guys!

@wdoug
Copy link
Contributor

wdoug commented Jun 8, 2024

I didn't mean to rush you while you were traveling! Anyway, thanks for getting this merged and published, @TimMikeladze!

@BrianBasor BrianBasor deleted the fix-issue-21-NaN-bug branch June 10, 2024 15:48
@BrianBasor
Copy link
Contributor Author

I hope your travels went smoothly. Thanks for the review and merge @TimMikeladze !

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.

Fix CLI bug: NaN error found. NaN error already in baseline.
3 participants