Skip to content

Commit

Permalink
Clean up fields
Browse files Browse the repository at this point in the history
  • Loading branch information
gatesn committed Jun 12, 2024
1 parent 5ebdee5 commit ae0db20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vortex-expr/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ impl Display for Value {

#[cfg(test)]
mod tests {
use vortex_dtype::field::FieldPath;
use vortex_dtype::field::{Field, FieldPath};

use crate::expressions::{lit, Conjunction, Disjunction};
use crate::field_paths::FieldPathOperations;

#[test]
fn test_predicate_formatting() {
let f1 = field("field");
let f1 = Field::from("field");
assert_eq!(format!("{}", f1.clone().lt(lit(1u32))), "($field < 1)");
assert_eq!(format!("{}", f1.clone().gte(lit(1u32))), "($field >= 1)");
assert_eq!(format!("{}", !f1.clone().lte(lit(1u32))), "($field > 1)");
Expand Down

0 comments on commit ae0db20

Please sign in to comment.