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

Commit

Permalink
use growable api for test
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Nov 7, 2021
1 parent 316c26c commit 0517b95
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/it/array/growable/dictionary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ fn test_negative_keys() {

let arr = DictionaryArray::from_data(keys, Arc::new(Utf8Array::<i32>::from(vals)));
// check that we don't panic with negative keys to usize conversion
let out = arrow2::compute::concat::concatenate(&[&arr]).unwrap();
let out = out.as_any().downcast_ref::<DictionaryArray<i32>>().unwrap();
assert_eq!(out, &arr);
let mut growable = GrowableDictionary::new(&[&arr], false, 0);
growable.extend(0, 0, 4);
let out: DictionaryArray<i32> = growable.into();
assert_eq!(out, arr);
}

#[test]
Expand Down

0 comments on commit 0517b95

Please sign in to comment.