diff --git a/test/src/autodiff/ExpressionTest.cpp b/test/src/autodiff/ExpressionTest.cpp index b307758c..9c5c4ee1 100644 --- a/test/src/autodiff/ExpressionTest.cpp +++ b/test/src/autodiff/ExpressionTest.cpp @@ -11,8 +11,8 @@ using sleipnir::detail::Zero; TEST_CASE("Expression - Default constructor", "[Expression]") { auto expr = MakeExpressionPtr(); - CHECK(0.0 == expr->value); - CHECK(sleipnir::ExpressionType::kConstant == expr->type); + CHECK(expr->value == 0.0); + CHECK(expr->type == sleipnir::ExpressionType::kConstant); } TEST_CASE("Expression - Zero", "[Expression]") {