Evaluates the given expression to a literal and checks if it matches the expected type and value.
The expression to evaluate.
The expected result.
True if the expression can be evaluated to a constant value that matches the expected type and value, false otherwise.
Evaluates the given expression to a literal and checks if it matches the expected type and value.