Skip to content

Commit

Permalink
test: add null + int and null + int + float test case
Browse files Browse the repository at this point in the history
Signed-off-by: Luka Peschke <[email protected]>
  • Loading branch information
lukapeschke committed Feb 5, 2024
1 parent eb2fc49 commit 025bdc1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utils/arrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ mod tests {
Cell::new((3, 0), CalDataType::Float(13.37)),
Cell::new((4, 0), CalDataType::String("hello".to_string())),
Cell::new((5, 0), CalDataType::Empty),
Cell::new((6, 0), CalDataType::Int(12)),
Cell::new((7, 0), CalDataType::Float(12.21)),
])
}

Expand All @@ -151,6 +153,10 @@ mod tests {
#[case(2, 5, ArrowDataType::Utf8)]
// int + float + string + empty
#[case(2, 6, ArrowDataType::Utf8)]
// int + null
#[case(5, 7, ArrowDataType::Int64)]
// int + float + null
#[case(5, 8, ArrowDataType::Float64)]
fn get_arrow_column_type_multi_dtype_ok(
range: Range<CalDataType>,
#[case] start_row: usize,
Expand Down

0 comments on commit 025bdc1

Please sign in to comment.