Skip to content

Commit

Permalink
rust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashleyhx committed Sep 28, 2023
1 parent 7b4271a commit ebf6adb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tools/rust_api/src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -820,9 +820,14 @@ mod tests {
convert_var_list: Value::VarList(LogicalType::String, vec!["Alice".into(), "Bob".into()]),
convert_var_list_empty: Value::VarList(LogicalType::String, vec![]),
convert_fixed_list: Value::FixedList(LogicalType::String, vec!["Alice".into(), "Bob".into()]),
convert_int8: Value::Int8(0),
convert_int16: Value::Int16(1),
convert_int32: Value::Int32(2),
convert_int64: Value::Int64(3),
convert_uint8: Value::UInt8(0),
convert_uint16: Value::UInt16(1),
convert_uint32: Value::UInt32(2),
convert_uint64: Value::UInt64(3),
convert_float: Value::Float(4.),
convert_double: Value::Double(5.),
convert_timestamp: Value::Timestamp(datetime!(2023-06-13 11:25:30 UTC)),
Expand All @@ -842,9 +847,14 @@ mod tests {
display_var_list: Value::VarList(LogicalType::String, vec!["Alice".into(), "Bob".into()]),
display_var_list_empty: Value::VarList(LogicalType::String, vec![]),
display_fixed_list: Value::FixedList(LogicalType::String, vec!["Alice".into(), "Bob".into()]),
display_int8: Value::Int8(0),
display_int16: Value::Int16(1),
display_int32: Value::Int32(2),
display_int64: Value::Int64(3),
display_uint8: Value::UInt8(0),
display_uint16: Value::UInt16(1),
display_uint32: Value::UInt32(2),
display_uint64: Value::UInt64(3),
// Float, double, interval and timestamp have display differences which we probably don't want to
// reconcile
display_date: Value::Date(date!(2023-06-13)),
Expand Down Expand Up @@ -873,9 +883,14 @@ mod tests {
// }), "INT16[3][]",
// db_var_list_string: Value::VarList(LogicalType::String, vec!["Alice".into(), "Bob".into()]), "STRING[]",
// db_var_list_int: Value::VarList(LogicalType::Int64, vec![0i64.into(), 1i64.into(), 2i64.into()]), "INT64[]",
db_int8: Value::Int8(0), "INT8",
db_int16: Value::Int16(1), "INT16",
db_int32: Value::Int32(2), "INT32",
db_int64: Value::Int64(3), "INT64",
db_uint8: Value::UInt8(0), "UINT8",
db_uint16: Value::UInt16(1), "UINT16",
db_uint32: Value::UInt32(2), "UINT32",
db_uint64: Value::UInt64(3), "UINT64",
db_float: Value::Float(4.), "FLOAT",
db_double: Value::Double(5.), "DOUBLE",
db_timestamp: Value::Timestamp(datetime!(2023-06-13 11:25:30 UTC)), "TIMESTAMP",
Expand Down

0 comments on commit ebf6adb

Please sign in to comment.