Skip to content

Commit e35b88b

Browse files
t-kalinowskiaitap
authored andcommitted
add tests
1 parent 47d2d3a commit e35b88b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/reg-tests-1d.R

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5905,6 +5905,18 @@ stopifnot(exprs = {
59055905
## gave just simpleError s; no line:column numbers in R <= 4.2.0
59065906

59075907

5908+
##Support for parsing numeric literals with underscore seperators
5909+
stopifnot(exprs = {
5910+
identical(123, 1_2_3)
5911+
identical(1234567890, 1_234_567_890)
5912+
identical(1234567890L, 1_234_567_890L)
5913+
identical(123, 1_2_3)
5914+
identical(12e3, 1_2e3)
5915+
identical(0xa2, 0xa_2)
5916+
identical(0xaa, 0xa_a)
5917+
})
5918+
5919+
59085920
## fisher.test() with "too full" table: PR#18336
59095921
d <- matrix(c(1,0,5,2,1,90
59105922
,2,1,0,2,3,89

0 commit comments

Comments
 (0)