exactly(0).descendants does not work as expected
lukebatchelor opened this issue · 1 comments
lukebatchelor commented
There's a strange edge case in exactly
where searching for exactly(0)
descendants will always return true.
I've only had a very brief look I'm guessing it's to do with this file
where it sets the exactlyCount
flag. I'm thinking this is being set to 0 then interpreted as a boolean false somewhere, so that when it get's checked here it is going down the non-exact-count code path.
I'll try to get some time to make a PR for this soon if you like.
Cheers