Follow up of 813622edf1d94b4bc1f600d55388876b86ec22c2:
adds a test to ensure we don't reintroduce this bug in the future
fix the case when x = 0 and y = 0. The test added in the previous commit reveals that NA is by default coerced to NA_logical_ which still causes issues in the vapply() call
move y to the second ifelse() call to clarify that x & y are handled symmetrically
Follow up of 813622edf1d94b4bc1f600d55388876b86ec22c2:
NA
is by default coerced toNA_logical_
which still causes issues in thevapply()
cally
to the secondifelse()
call to clarify that x & y are handled symmetricallyFix #244