Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-awala committed Jan 23, 2025
1 parent 198ebd6 commit d94b2fb
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions crates/iceberg/src/expr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,25 @@ impl PredicateOperator {
///
/// ```rust
/// use iceberg::expr::PredicateOperator;
/// assert_eq!(PredicateOperator::IsNull.negate(), PredicateOperator::NotNull);
/// assert_eq!(
/// PredicateOperator::IsNull.negate(),
/// PredicateOperator::NotNull
/// );
/// assert_eq!(PredicateOperator::IsNan.negate(), PredicateOperator::NotNan);
/// assert_eq!(PredicateOperator::LessThan.negate(), PredicateOperator::GreaterThanOrEq);
/// assert_eq!(PredicateOperator::GreaterThan.negate(), PredicateOperator::LessThanOrEq);
/// assert_eq!(
/// PredicateOperator::LessThan.negate(),
/// PredicateOperator::GreaterThanOrEq
/// );
/// assert_eq!(
/// PredicateOperator::GreaterThan.negate(),
/// PredicateOperator::LessThanOrEq
/// );
/// assert_eq!(PredicateOperator::Eq.negate(), PredicateOperator::NotEq);
/// assert_eq!(PredicateOperator::In.negate(), PredicateOperator::NotIn);
/// assert_eq!(PredicateOperator::StartsWith.negate(), PredicateOperator::NotStartsWith);
/// assert_eq!(
/// PredicateOperator::StartsWith.negate(),
/// PredicateOperator::NotStartsWith
/// );
/// ```
pub fn negate(self) -> PredicateOperator {
match self {
Expand Down

0 comments on commit d94b2fb

Please sign in to comment.