Skip to content

Commit 92c6228

Browse files
added tests for use of vector replacement also
1 parent 3f2b661 commit 92c6228

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inst/tests/tests.Rraw

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15573,6 +15573,8 @@ test(2060.157, x, ans) # setcoalesce updated the first item (x) by reference
1557315573
# nan parameter, #4567
1557415574
test(2060.158, fcoalesce(c(NA_real_, NaN), 0, nan=NA), c(0, 0))
1557515575
test(2060.159, fcoalesce(c(NA_real_, NaN), 0, nan=NaN), c(0, NaN))
15576+
test(2060.160, fcoalesce(c(NA_real_, NaN), c(1, 2), nan=NA), c(1, 2))
15577+
test(2060.161, fcoalesce(c(NA_real_, NaN), c(1, 2), nan=NaN), c(1, NaN))
1557615578
# factor of different levels
1557715579
x = factor(c('a','b',NA,NA,'b'))
1557815580
y = factor(c('b','b','a',NA,'b'))

0 commit comments

Comments
 (0)