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

Fixes and tests #36

Merged
merged 3 commits into from
Aug 27, 2021
Merged

Conversation

fredizzimo
Copy link
Contributor

I noticed that the algorithm was not quite working right so I ported some tests from the Go version and made some fixes. I also improved the position based tests, which previously did not check for the whole expectation array.

The tests were ported from the go version. And when running them a
couple of issues were found and fixed.
The tests that were testing for returned positions did not check the
whole array. This fixes that, and also verifies that the length matches.
@fredizzimo
Copy link
Contributor Author

Ah, sorry, I did not run the lua tests, I will try to do that now and fix them

The correct score is 54
16 + 2 * 8 - 3 - 2 * 1 + 16 - 3 - 2 * 1 + 16 = 54
@fredizzimo
Copy link
Contributor Author

Yes the test was wrong, the correct score is 54
16 + 2 * 8 - 3 - 2 * 1 + 16 - 3 - 2 * 1 + 16 = 54

@Conni2461
Copy link
Member

You are right. This is awesome thank you very much :)

I never expected anyone to look at my code so i dont know what to say 😆 Sorry that you had to deal with my testing framework i was just playing around with stuff. I am still learning c

@Conni2461 Conni2461 merged commit 66c8705 into nvim-telescope:main Aug 27, 2021
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.

None yet

2 participants