Skip to content

Commit

Permalink
Adjusted the assertion for clarity on comparing enum variants.
Browse files Browse the repository at this point in the history
  • Loading branch information
nglime committed Sep 12, 2024
1 parent 080a30e commit c768c34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datafusion/expr-common/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,13 +420,13 @@ mod tests {
}

#[test]
fn typesignature_partial_ord() {
fn type_signature_partial_ord() {
// Test validates that partial ord is defined for TypeSignature and Signature.
assert!(TypeSignature::UserDefined < TypeSignature::VariadicAny);
assert!(TypeSignature::UserDefined < TypeSignature::Any(1));

assert!(TypeSignature::Uniform(1, vec![DataType::Null]) < TypeSignature::Uniform(1, vec![DataType::Boolean]));
assert!(TypeSignature::Uniform(1, vec![DataType::Null]) < TypeSignature::Uniform(2, vec![DataType::Null]));
assert!(TypeSignature::Uniform(1, vec![DataType::Null]) < TypeSignature::Exact(vec![DataType::Null]));
assert!(TypeSignature::Uniform(usize::MAX, vec![DataType::Null]) < TypeSignature::Exact(vec![DataType::Null]));
}
}

0 comments on commit c768c34

Please sign in to comment.