Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Added test for MutableUtf8Array::as_box (#1266)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao authored Oct 4, 2022
1 parent 9574d7f commit ecbc717
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/it/array/utf8/mutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,13 @@ fn test_iter() {
]
);
}

#[test]
fn as_box_twice() {
let mut a = MutableUtf8Array::<i32>::new();
let _ = a.as_box();
let _ = a.as_box();
let mut a = MutableUtf8Array::<i32>::new();
let _ = a.as_arc();
let _ = a.as_arc();
}

0 comments on commit ecbc717

Please sign in to comment.