Skip to content

Commit 9eedb75

Browse files
committed
fix test
1 parent 46880cf commit 9eedb75

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

r/tests/testthat/test-infer-ptype.R

+15-15
Original file line numberDiff line numberDiff line change
@@ -119,18 +119,18 @@ test_that("infer_nanoarrow_ptype() infers ptypes for nested types", {
119119
)
120120
})
121121

122-
# test_that("infer_nanoarrow_ptype() errors for types it can't infer", {
123-
# unsupported_array <- nanoarrow_array_init(na_decimal256(3, 4))
124-
# expect_error(
125-
# infer_nanoarrow_ptype(as_nanoarrow_array(unsupported_array)),
126-
# "Can't infer R vector type for <decimal256\\(3, 4\\)>"
127-
# )
128-
#
129-
# unsupported_struct <- nanoarrow_array_init(
130-
# na_struct(list(col = na_decimal256(3, 4)))
131-
# )
132-
# expect_error(
133-
# infer_nanoarrow_ptype(as_nanoarrow_array(unsupported_struct)),
134-
# "Can't infer R vector type for `col` <decimal256\\(3, 4\\)>"
135-
# )
136-
# })
122+
test_that("infer_nanoarrow_ptype() errors for types it can't infer", {
123+
unsupported_array <- nanoarrow_array_init(na_list_view(na_int32()))
124+
expect_error(
125+
infer_nanoarrow_ptype(as_nanoarrow_array(unsupported_array)),
126+
"Can't infer R vector type for <list_view<item: int32>>"
127+
)
128+
129+
unsupported_struct <- nanoarrow_array_init(
130+
na_struct(list(col = na_list_view(na_int32())))
131+
)
132+
expect_error(
133+
infer_nanoarrow_ptype(as_nanoarrow_array(unsupported_struct)),
134+
"Can't infer R vector type for `col` <list_view<item: int32>>"
135+
)
136+
})

0 commit comments

Comments
 (0)