Skip to content

Commit 535a78f

Browse files
style: integer
1 parent 179478b commit 535a78f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/testthat/test-sortuse64.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ with_parameters_test_that("orderfin and orderpos work", method=1:3, {
2323
expect_identical(orderpos(x, idx, as.integer64(0:1), method=method), c(NA_integer_, 1L))
2424

2525
# These were segfaulting due to length(order) < length(table)
26-
table = as.integer64(c(10, 20, 30, 5, 15, 25))
27-
order = c(4, 1, 5, 2, 6, 3) # order of table is 5, 10, 15, 20, 25, 30
26+
table = as.integer64(c(10L, 20L, 30L, 5L, 15L, 25L))
27+
order = c(4L, 1L, 5L, 2L, 6L, 3L) # order of table is 5, 10, 15, 20, 25, 30
2828

29-
partial_order = c(4, 1, 5, 2) # order of subset of table is 5, 10, 15, 20
29+
partial_order = c(4L, 1L, 5L, 2L) # order of subset of table is 5, 10, 15, 20
3030

31-
x_search = as.integer64(c(5, 10, 15, 20, 25, 30, 99))
31+
x_search = as.integer64(c(5L, 10L, 15L, 20L, 25L, 30L,L 99L))
3232

3333
# reference with full order
3434
full_fin = c(TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, FALSE)

0 commit comments

Comments
 (0)