Closed donaldpipowitch closed 9 years ago
Added following test, which pass without any change. Do you have any additional information ?
it "prefers matches that are together in the basename", ->
candidates = [
path.join('tests','buyers','orders_e2e.js'),
path.join('tests','buyers','users_e2e.js')
]
expect(bestMatch(candidates, 'us_e2')).toBe candidates[1]
Is this enabled ?
Oh man, I'm sorry. My example was wrong. I actually have something like this
tests/buyers/orders_e2e.js
tests/buyers/users-addresses_e2e.js
But I still would expect tests/buyers/users-addresses_e2e.js
to show up before tests/buyers/orders_e2e.js
which is not the case.
Ok then the problem is the penalty for the length of filename.
In the meantime a query like uae2
should work better (IE use the fact you want the address)
Ok we pass your new use case too without any change. But I believe this is because of the changes to fix #1 . (Not yet pushed to atom)
Say I have the files
tests/buyers/orders_e2e.js
tests/buyers/users_e2e.js
And I look for
us_e2
I gettests/b*u*yers/order*s*_*e2*e.js
and several other files, but nottests/buyers/users_e2e.js
.