Skip to content

Commit

Permalink
ci: feature flat for AltListImpl was missign
Browse files Browse the repository at this point in the history
  • Loading branch information
CGMossa committed Mar 15, 2024
1 parent 9d35451 commit 7897f23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extendr-api/tests/altrep_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,14 @@ mod tests {
#[extendr]
impl VecUsize {}

#[cfg(use_r_altlist)]
impl AltrepImpl for VecUsize {
fn length(&self) -> usize {
self.0.len()
}
}

#[cfg(use_r_altlist)]
impl AltListImpl for VecUsize {
fn elt(&self, index: usize) -> Robj {
Self(vec![self.0[index]]).try_into().unwrap()
Expand Down Expand Up @@ -297,12 +299,14 @@ mod tests_use_try_from {
#[extendr(use_try_from = true)]
impl VecUsize {}

#[cfg(use_r_altlist)]
impl AltrepImpl for VecUsize {
fn length(&self) -> usize {
self.0.len()
}
}

#[cfg(use_r_altlist)]
impl AltListImpl for VecUsize {
fn elt(&self, index: usize) -> Robj {
Self(vec![self.0[index]]).try_into().unwrap()
Expand Down

0 comments on commit 7897f23

Please sign in to comment.