Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: dbcfd <bdbrowning2@gmail.com>
  • Loading branch information
dbcfd committed Aug 18, 2021
1 parent e1713ee commit 42a8693
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions lib/vector-core/src/event/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1342,9 +1342,18 @@ mod test {
assert_eq!(hash(Value::Float(1.2)), hash(Value::Float(1.4)));
assert_ne!(hash(Value::Float(1.2)), hash(Value::Float(-1.2)));
assert_ne!(hash(Value::Float(-0.0)), hash(Value::Float(0.0)));
assert_ne!(hash(Value::Float(f64::NEG_INFINITY)), hash(Value::Float(f64::INFINITY)));
assert_eq!(hash(Value::Array(vec![Value::Integer(0), Value::Boolean(true)])), hash(Value::Array(vec![Value::Integer(0), Value::Boolean(true)])));
assert_ne!(hash(Value::Array(vec![Value::Integer(0), Value::Boolean(true)])), hash(Value::Array(vec![Value::Integer(1), Value::Boolean(true)])));
assert_ne!(
hash(Value::Float(f64::NEG_INFINITY)),
hash(Value::Float(f64::INFINITY))
);
assert_eq!(
hash(Value::Array(vec![Value::Integer(0), Value::Boolean(true)])),
hash(Value::Array(vec![Value::Integer(0), Value::Boolean(true)]))
);
assert_ne!(
hash(Value::Array(vec![Value::Integer(0), Value::Boolean(true)])),
hash(Value::Array(vec![Value::Integer(1), Value::Boolean(true)]))
);
}
}

Expand Down

0 comments on commit 42a8693

Please sign in to comment.