Skip to content

Commit

Permalink
add todo test
Browse files Browse the repository at this point in the history
  • Loading branch information
hallettj committed Nov 22, 2024
1 parent 791f1e1 commit aacb803
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions crates/cli/src/native_query/type_solver/simplify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -697,4 +697,43 @@ mod tests {
);
Ok(())
}

// TODO:
// #[googletest::test]
// fn simplifies_two_compatible_unions_in_contravariant_context() -> Result<()> {
// let configuration = mflix_config();
// let result = super::simplify_constraints(
// &configuration,
// &Default::default(),
// &mut Default::default(),
// Some(TypeVariable::new(1, Variance::Contravariant)),
// [
// TypeConstraint::Union(
// [
// TypeConstraint::Scalar(BsonScalarType::Double),
// TypeConstraint::Scalar(BsonScalarType::Null),
// ]
// .into(),
// ),
// TypeConstraint::Union(
// [
// TypeConstraint::Scalar(BsonScalarType::Int),
// TypeConstraint::Scalar(BsonScalarType::Null),
// ]
// .into(),
// ),
// ],
// );
// expect_that!(
// result,
// ok(eq(&BTreeSet::from([TypeConstraint::Union(
// [
// TypeConstraint::Scalar(BsonScalarType::Int),
// TypeConstraint::Scalar(BsonScalarType::Null),
// ]
// .into(),
// )])))
// );
// Ok(())
// }
}

0 comments on commit aacb803

Please sign in to comment.