nvim-telescope / telescope-fzf-native.nvim

FZF sorter for telescope written in c
1.36k stars 45 forks source link

Fixes and tests #36

Closed fredizzimo closed 2 years ago

fredizzimo commented 2 years ago

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.

fredizzimo commented 2 years ago

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

fredizzimo commented 2 years ago

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

Conni2461 commented 2 years ago

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 :laughing: Sorry that you had to deal with my testing framework i was just playing around with stuff. I am still learning c